cookiebug修改

This commit is contained in:
CaiYanPeng 2021-07-30 20:39:23 +08:00
parent be677e766d
commit fe2c0280dc

View File

@ -248,7 +248,14 @@ namespace Assets.Scripts.Apis
}
public JsonResult<object> Update(UserResultModel currUser, out string cookie, string filePath = "")
{
cookie = App.CurrentUser.cookie;
if (App.CurrentUser != null)
{
cookie = App.CurrentUser.cookie;
}
else
{
cookie = null;
}
//return await PostAsync<JsonResult<dynamic>>("User/UpdateUserSetting", new {
// UID = currUser.Id,
// Sex = currUser.Sex,