From 024703246120fee33e2f6c2f662383f1facdecd2 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 14 四月 2022 15:35:00 +0800 Subject: [PATCH] 2022年04月14日15:34:55 --- HDL_ON/DAL/Server/HttpServerRequest.cs | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs index 2414895..4741b1c 100644 --- a/HDL_ON/DAL/Server/HttpServerRequest.cs +++ b/HDL_ON/DAL/Server/HttpServerRequest.cs @@ -153,6 +153,10 @@ sdm.RefreshToken = UserInfo.Current.RefreshToken; #endif } + else if (revertObj.Code == StateCode.PasswrodError) + { + UserInfo.Current.LastTime = DateTime.MinValue; + } return revertObj.Code; } @@ -1025,10 +1029,10 @@ #endif //鏄惁鐢熶骇妯″紡 bool isProduce = true; -#if DEBUG - isProduce = false; -#endif - + if (HttpUtil.GlobalRequestHttpsHost == "https://test-gz.hdlcontrol.com") + { + isProduce = false; + } if (string.IsNullOrEmpty(OnAppConfig.Instance.PushDeviceToken)) { Utlis.WriteLine("PushDeviceToken 涓虹┖"); @@ -1946,15 +1950,18 @@ /// 鑾峰彇璁惧鍒楄〃 /// </summary> /// <returns></returns> - public ResponsePackNew GetDeviceList() + public ResponsePackNew GetDeviceList(string pageSize="",string pageNo ="") { Dictionary<string, object> d = new Dictionary<string, object>(); d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); //d.Add("gatewayId", DB_ResidenceData.residenceData.HomeGateway.gatewayId); //d.Add("roomId", DB_ResidenceData.residenceData.residecenInfo.RegionID);//鍙帶鍙傛暟锛屽綋闇�瑕佸垎椤佃幏鍙栵紝鎬庝箞鐭ラ亾鍒嗛〉鎬绘暟 //d.Add("searchType", DB_ResidenceData.residenceData.residecenInfo.RegionID); - //d.Add("pageSize", DB_ResidenceData.residenceData.residecenInfo.RegionID); - //d.Add("pageNo", DB_ResidenceData.residenceData.residecenInfo.RegionID); + if (!string.IsNullOrEmpty(pageSize)) + { + d.Add("pageSize", pageSize); + d.Add("pageNo", pageNo); + } var requestJson = HttpUtil.GetSignRequestJson(d); return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetDevcieList, requestJson); -- Gitblit v1.8.0