Commit 0bbf13bb authored by 黄奎's avatar 黄奎

页面修改

parent c0522cc3
...@@ -165,6 +165,8 @@ namespace Mall.CacheManager.User ...@@ -165,6 +165,8 @@ namespace Mall.CacheManager.User
/// <param name="UserId">用户Id</param> /// <param name="UserId">用户Id</param>
/// <returns></returns> /// <returns></returns>
public static AppletUserInfo GetAppletUserLoginInfo(object UserId) public static AppletUserInfo GetAppletUserLoginInfo(object UserId)
{
if (UserId != null)
{ {
string cacheKey = UserModuleCacheKeyConfig.Applet_Login_Info + UserId.ToString(); string cacheKey = UserModuleCacheKeyConfig.Applet_Login_Info + UserId.ToString();
AppletUserInfo userInfo = null; AppletUserInfo userInfo = null;
...@@ -206,5 +208,7 @@ namespace Mall.CacheManager.User ...@@ -206,5 +208,7 @@ namespace Mall.CacheManager.User
} }
return userInfo; return userInfo;
} }
return null;
}
} }
} }
...@@ -151,17 +151,13 @@ namespace Mall.WebApi.Controllers.User ...@@ -151,17 +151,13 @@ namespace Mall.WebApi.Controllers.User
public ApiResult SetUserShippingAddress() public ApiResult SetUserShippingAddress()
{ {
var req = RequestParm; var req = RequestParm;
var userInfo = AppletUserInfo;
JObject prams = JObject.Parse(req.msg.ToString()); JObject prams = JObject.Parse(req.msg.ToString());
int NewUserId = prams.GetInt("NewUserId"); int NewUserId = prams.GetInt("NewUserId");
AppletUserInfo userInfo =null;
if (NewUserId > 0) if (NewUserId > 0)
{ {
userInfo = UserReidsCache.GetAppletUserLoginInfo(NewUserId); userInfo = UserReidsCache.GetAppletUserLoginInfo(NewUserId);
} }
else
{
userInfo = AppletUserInfo;
}
RB_Member_ShippingAddress_Extend demodel = JsonConvert.DeserializeObject<RB_Member_ShippingAddress_Extend>(req.msg.ToString()); RB_Member_ShippingAddress_Extend demodel = JsonConvert.DeserializeObject<RB_Member_ShippingAddress_Extend>(req.msg.ToString());
if (string.IsNullOrEmpty(demodel.Name)) if (string.IsNullOrEmpty(demodel.Name))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment