From a7290cd76e9fc87988ccfde74194fadf7b46a7df Mon Sep 17 00:00:00 2001
From: jinghz@oceic.com <jinghz@oceic.com>
Date: 星期一, 03 七月 2023 15:31:12 +0800
Subject: [PATCH] 判断权限报错后,提示用户和模块
---
WebAPI/Controllers/ProductInController.cs | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/WebAPI/Controllers/ProductInController.cs b/WebAPI/Controllers/ProductInController.cs
index 8291829..d7b2890 100644
--- a/WebAPI/Controllers/ProductInController.cs
+++ b/WebAPI/Controllers/ProductInController.cs
@@ -1260,7 +1260,8 @@
{
this.objJsonResult.code = "0";
this.objJsonResult.count = 1;
- this.objJsonResult.Message = "鐢熸垚浜у搧鍏ュ簱鍗曟垚鍔燂紒鍗曟嵁鍙蜂负锛�";
+ objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //鎴愬姛锛�
+ //this.objJsonResult.Message = "鐢熸垚浜у搧鍏ュ簱鍗曟垚鍔燂紒鍗曟嵁鍙蜂负锛�";
this.objJsonResult.data = null;
result = this.objJsonResult;
}
@@ -1268,7 +1269,8 @@
{
this.objJsonResult.code = "0";
this.objJsonResult.count = 0;
- this.objJsonResult.Message = "涓婁紶澶辫触锛�" + ClsPub.sErrInfo;
+ objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //澶辫触锛�
+ //this.objJsonResult.Message = "涓婁紶澶辫触锛�" + ClsPub.sErrInfo;
this.objJsonResult.data = null;
result = this.objJsonResult;
}
--
Gitblit v1.9.1