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

页面修改

parent c0522cc3
......@@ -165,6 +165,8 @@ namespace Mall.CacheManager.User
/// <param name="UserId">用户Id</param>
/// <returns></returns>
public static AppletUserInfo GetAppletUserLoginInfo(object UserId)
{
if (UserId != null)
{
string cacheKey = UserModuleCacheKeyConfig.Applet_Login_Info + UserId.ToString();
AppletUserInfo userInfo = null;
......@@ -206,5 +208,7 @@ namespace Mall.CacheManager.User
}
return userInfo;
}
return null;
}
}
}
......@@ -151,17 +151,13 @@ namespace Mall.WebApi.Controllers.User
public ApiResult SetUserShippingAddress()
{
var req = RequestParm;
var userInfo = AppletUserInfo;
JObject prams = JObject.Parse(req.msg.ToString());
int NewUserId = prams.GetInt("NewUserId");
AppletUserInfo userInfo =null;
if (NewUserId > 0)
{
userInfo = UserReidsCache.GetAppletUserLoginInfo(NewUserId);
}
else
{
userInfo = AppletUserInfo;
}
RB_Member_ShippingAddress_Extend demodel = JsonConvert.DeserializeObject<RB_Member_ShippingAddress_Extend>(req.msg.ToString());
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