| | |
| | | dic["NoExist"] = R.MyInternationalizationString.uErrorAndLostOtherPatyInfo;
|
| | | //指定账号不存在
|
| | | dic["AccountNoExists"] = R.MyInternationalizationString.uAccountNoExists;
|
| | |
|
| | | //修改子帐号远程权限
|
| | | keys = "ZigbeeUsers/ChangeSubAccountIsAllowRemoteCtrl";
|
| | | dicMsg[keys] = new Dictionary<string, int>();
|
| | | dic = dicMsg[keys];
|
| | | //请求参数错误
|
| | | dic["ParameterOrEmpty"] = R.MyInternationalizationString.uParameterError;
|
| | | //无效登录Token
|
| | | dic["NoLogin"] = R.MyInternationalizationString.uNoLogin;
|
| | | //指定的住宅不存在
|
| | | dic["HomeIdNoRecord"] = R.MyInternationalizationString.uZigbeeHome_NoRecord;
|
| | | //指定账号不存在
|
| | | dic["DistributedMarkNoRecord"] = R.MyInternationalizationString.uAccountNoExists;
|
| | | //权限不足
|
| | | dic["BeRestrict"] = R.MyInternationalizationString.uBeRestrict;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | }
|
| | | string statuCode = revertObj.StateCode;
|
| | |
|
| | | HdlLogLogic.Current.WriteLog(-1, "接口访问失败:" + requestName + " " + statuCode + " " + revertObj.ErrorInfo == null ? string.Empty : revertObj.ErrorInfo);
|
| | | HdlLogLogic.Current.WriteLog(-1, "当前激活的界面:" + UserCenterResourse.NowActionFormID);
|
| | | string errorMsg = "接口访问失败:" + requestName + " " + statuCode + " " + revertObj.ErrorInfo == null ? string.Empty : revertObj.ErrorInfo + "\r\n";
|
| | | errorMsg += "当前激活的界面:" + UserCenterResourse.NowActionFormID + "\r\n";
|
| | | if (pra != null)
|
| | | {
|
| | | //序列化对象
|
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject(pra);
|
| | | HdlLogLogic.Current.WriteLog(-1, "参数:\r\n" + requestJson);
|
| | | errorMsg += "参数:\r\n" + requestJson;
|
| | | }
|
| | | HdlLogLogic.Current.WriteLog(-1, errorMsg);
|
| | |
|
| | | //共通码
|
| | | if (statuCode == "ParameterOrEmpty")
|