From f77a3add1e7ab266e473da9128bbe5758ba3a890 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期日, 20 十二月 2020 19:29:03 +0800 Subject: [PATCH] Merge branch 'NewFilePath' into CJL --- HDL_ON/DAL/Server/IMessageCommon.cs | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/HDL_ON/DAL/Server/IMessageCommon.cs b/HDL_ON/DAL/Server/IMessageCommon.cs index 041a6ac..fbfc0bf 100644 --- a/HDL_ON/DAL/Server/IMessageCommon.cs +++ b/HDL_ON/DAL/Server/IMessageCommon.cs @@ -64,7 +64,10 @@ stateCodeDic["NETWORK_ERROR"] = StringId.FailedRequestServer; //鏁版嵁寮傚父 stateCodeDic["DATA_EXCEPTION"] = StringId.DataExceptionPleaseTryAgain; - + //涓庢湇鍔″櫒閫氳澶辫触 + stateCodeDic[StateCode.NETWORK_ERROR] = StringId.FailedRequestServer; + //鏁版嵁寮傚父 + stateCodeDic[StateCode.DATA_EXCEPTION] = StringId.DataExceptionPleaseTryAgain; #region 鍩虹鏈嶅姟 鏂伴敊璇爜 2020-12-07 //绯荤粺绻佸繖~璇风◢鍚庡啀璇晘 stateCodeDic["1"] = StringId.SystemIsBusy; @@ -275,7 +278,7 @@ { Application.RunOnMainThread(() => { - new Alert("", mes, Language.StringByID(StringId.Close)).Show(); + new Alert("", mes+$" \r\nCode:{statuCode}", Language.StringByID(StringId.Close)).Show(); }); } } @@ -320,6 +323,16 @@ public class StateCode { /// <summary> + /// 缃戠粶璇锋眰寮傚父 + /// APP鑷畾涔夐敊璇爜 + /// </summary> + public const string NETWORK_ERROR = "-1"; + /// <summary> + /// 鏁版嵁瑙f瀽閿欒 + /// APP鑷畾涔夐敊璇爜 + /// </summary> + public const string DATA_EXCEPTION = "-2"; + /// <summary> /// 璇锋眰鎴愬姛鐨勭姸鎬佺爜 /// </summary> public const string SUCCESS = "0"; -- Gitblit v1.8.0