From 25afbc347932821c7b8bc4d9a6a7acb73eb3f969 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期六, 12 十二月 2020 19:32:28 +0800
Subject: [PATCH] 2020-12-12 1.修改退出登录方法。
---
HDL_ON/DAL/Server/HttpServerRequest.cs | 40 ++++++++++++++++++++--------------------
1 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs
index 649d81e..15c157b 100644
--- a/HDL_ON/DAL/Server/HttpServerRequest.cs
+++ b/HDL_ON/DAL/Server/HttpServerRequest.cs
@@ -492,20 +492,20 @@
UserInfo.Current.regionList.Add(home);
}
- if (string.IsNullOrEmpty(DB_ResidenceData.residenceData.CurReginID))
+ if (string.IsNullOrEmpty(UserInfo.Current.CurReginID))
{
- DB_ResidenceData.residenceData.CurReginID = UserInfo.Current.regionList[0].RegionID;
+ UserInfo.Current.CurReginID = UserInfo.Current.regionList[0].RegionID;
//鎭㈠澶囦唤
- HDLCommon.Current.RestoreHomeBackup(DB_ResidenceData.residenceData.CurReginID);
+ //HDLCommon.Current.RestoreHomeBackup(DB_ResidenceData.residenceData.CurReginID);
}
else
{
- var curRegion = UserInfo.Current.regionList.Find((obj) => obj.RegionID == DB_ResidenceData.residenceData.CurReginID);
+ var curRegion = UserInfo.Current.regionList.Find((obj) => obj.RegionID == UserInfo.Current.CurReginID);
if(curRegion == null)
{
- DB_ResidenceData.residenceData.CurReginID = UserInfo.Current.regionList[0].RegionID;
+ UserInfo.Current.CurReginID = UserInfo.Current.regionList[0].RegionID;
//鎭㈠澶囦唤
- HDLCommon.Current.RestoreHomeBackup(DB_ResidenceData.residenceData.CurReginID);
+ //HDLCommon.Current.RestoreHomeBackup(DB_ResidenceData.residenceData.CurReginID);
}
}
@@ -894,15 +894,15 @@
isProduce = false;
#endif
- if (string.IsNullOrEmpty(UserInfo.Current.PushDeviceToken)) {
+ if (string.IsNullOrEmpty(OnAppConfig.Instance.PushDeviceToken)) {
Utlis.WriteLine("PushDeviceToken 涓虹┖");
return false;
}
var mAddpushinfoObj = new AddpushinfoObj()
{
- pushToken = UserInfo.Current.PushDeviceToken,
- deviceName = UserInfo.Current.PhoneName,
+ pushToken = OnAppConfig.Instance.PushDeviceToken,
+ deviceName = OnAppConfig.Instance.PhoneName,
deviceType = deviceType,
produce = isProduce,
};
@@ -917,8 +917,8 @@
var pushId = revertObj.Data.ToString();
if (!string.IsNullOrEmpty(pushId))
{
- UserInfo.Current.PushId = pushId;
- UserInfo.Current.SaveUserInfo();
+ OnAppConfig.Instance.PushId = pushId;
+ OnAppConfig.Instance.SaveConfig();
Utlis.WriteLine("PushId: " + pushId);
return true;
@@ -963,7 +963,7 @@
var requestJson = HttpUtil.GetSignRequestJson(new GetMessageListObj()
{
- pushId = UserInfo.Current.PushId,
+ pushId = OnAppConfig.Instance.PushId,
pushType = pushType
});
return HttpUtil.RequestHttpsPost(NewAPI.API_POST_PushSerivce_Getpushmessagelist, requestJson);
@@ -975,11 +975,11 @@
/// <returns></returns>
public bool PushSerivceClearmessagelist()
{
- if (string.IsNullOrEmpty(UserInfo.Current.PushId)) return false;
+ if (string.IsNullOrEmpty(OnAppConfig.Instance.PushId)) return false;
var requestJson = HttpUtil.GetSignRequestJson(new PushIdObj()
{
- pushId = UserInfo.Current.PushId
+ pushId = OnAppConfig.Instance.PushId
});
var revertObj = HttpUtil.RequestHttpsPost(NewAPI.API_POST_PushSerivce_Clearmessagelist, requestJson);
@@ -1000,11 +1000,11 @@
/// <returns></returns>
public bool PushSerivceSignOut()
{
- if (string.IsNullOrEmpty(UserInfo.Current.PushId)) return false;
+ if (string.IsNullOrEmpty(OnAppConfig.Instance.PushId)) return false;
try
{
var requestJson = HttpUtil.GetSignRequestJson(new PushIdObj() {
- pushId = UserInfo.Current.PushId
+ pushId = OnAppConfig.Instance.PushId
});
var revertObj = HttpUtil.RequestHttpsPost(NewAPI.API_POST_PushSerivce_DeleteToken, requestJson);
@@ -1031,13 +1031,13 @@
/// <returns></returns>
public bool PushSerivceMarkAllMessageRead()
{
- if (string.IsNullOrEmpty(UserInfo.Current.PushId)) return false;
+ if (string.IsNullOrEmpty(OnAppConfig.Instance.PushId)) return false;
try
{
var requestJson = HttpUtil.GetSignRequestJson(new PushIdObj()
{
- pushId = UserInfo.Current.PushId
+ pushId = OnAppConfig.Instance.PushId
});
var revertObj = HttpUtil.RequestHttpsPost(NewAPI.API_POST_PushSerivce_ALLMarkread, requestJson);
if (revertObj.Code == StateCode.SUCCESS)
@@ -1063,7 +1063,7 @@
/// <returns></returns>
public bool PushSerivceMarkMessageRead(string msgId)
{
- if (string.IsNullOrEmpty(UserInfo.Current.PushId)) return false;
+ if (string.IsNullOrEmpty(OnAppConfig.Instance.PushId)) return false;
try
{
@@ -1096,7 +1096,7 @@
/// <returns></returns>
public bool PushSerivceDeleteMessage(string msgId)
{
- if (string.IsNullOrEmpty(UserInfo.Current.PushId)) return false;
+ if (string.IsNullOrEmpty(OnAppConfig.Instance.PushId)) return false;
try
{
--
Gitblit v1.8.0