From 21736b2944d5e88cd705a39ff87fd73d5a16e609 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期六, 09 五月 2020 11:06:35 +0800 Subject: [PATCH] 安川 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs index d141bc1..76799e9 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs @@ -869,7 +869,7 @@ UserCenterResourse.ResidenceOption = UserCenterResourse.ResidenceOption.Load(); //鍒濆鍖栫櫥闄嗚处鍙风殑淇℃伅 - var hadNet = await InitUserAccoutInfo(); + var hadNet = await InitUserAccoutInfo(true); //濡傛灉鏈夌綉缁滅殑璇� if (hadNet == true) { @@ -990,14 +990,18 @@ /// <summary> /// 鍒濆鍖栫櫥闄嗚处鍙风殑淇℃伅 /// </summary> + /// <param name="reLoad">鏄惁浠庢柊浠庢湰鍦板姞杞�(閲嶆柊鍒濆鍖栫櫥闄嗚处鍙风殑淇℃伅,涓嶉渶瑕侀噸鏂板姞杞�)</param> /// <returns></returns> - private async static Task<bool> InitUserAccoutInfo() + private async static Task<bool> InitUserAccoutInfo(bool reLoad) { //鍒濆鍖栦釜浜轰俊鎭殑鏍囪瘑 UserCenterResourse.UserInfo.InitUserInfoSuccess = false; - //鑾峰彇鏈湴璁板綍鐨勭敤鎴蜂俊鎭� - UserCenterResourse.UserInfo = GetUserInformationFromLocation(); - UserCenterResourse.UserInfo.UserIconFile = System.IO.Path.Combine(UserCenterResourse.AccountOption.UserPictruePath, "Admin.png"); + if (reLoad == true) + { + //鑾峰彇鏈湴璁板綍鐨勭敤鎴蜂俊鎭� + UserCenterResourse.UserInfo = GetUserInformationFromLocation(); + UserCenterResourse.UserInfo.UserIconFile = System.IO.Path.Combine(UserCenterResourse.AccountOption.UserPictruePath, "Admin.png"); + } //鑾峰彇鐧诲綍璐﹀彿鐨勪俊鎭� var pra = new AccountInfoPra(); @@ -1120,7 +1124,7 @@ private async static Task<bool> ReInitUserAccoutInfo() { //閲嶆柊鍒濆鍖栬处鍙蜂俊鎭� - var result = await InitUserAccoutInfo(); + var result = await InitUserAccoutInfo(false); if (result == false) { return result; -- Gitblit v1.8.0