cookiebug修改

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

View File

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