google 登录暂存
This commit is contained in:
1 parent
45b3ee5bbc
commit
58a8233697
21 files changed
+355
-102
No files matched your search
@@ -95,8 +95,7 @@ namespace Assets.Scripts.Apis.Models
|
||||
|
||||
public bool IsFav { get; set; }
|
||||
}
|
||||
|
||||
public class MapRouteAreaDetail
|
||||
public class MapRouteAreaDetail : MapRouteAreaItem
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
@@ -114,35 +113,11 @@ namespace Assets.Scripts.Apis.Models
|
||||
///
|
||||
/// </summary>
|
||||
public int RideCount { get; set; }
|
||||
/// <summary>
|
||||
/// 环徐州
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string BannerImage { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CoverImage { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public bool IsFav { get; set; }
|
||||
public string CreateUserHead { get; set; }
|
||||
public string CreateUserName { get; set; }
|
||||
public List<MapRouteAreaDetailUser> UserList { get; set; }
|
||||
}
|
||||
|
||||
public class MapRouteAreaDetailUser
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
@@ -77,5 +77,6 @@ namespace Assets.Scripts.Apis.Models
|
||||
//第三方userid
|
||||
public string AppleUserId { get; set; }
|
||||
public string FacebookUserId { get; set; }
|
||||
public string GoogleUserId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -310,6 +310,18 @@ namespace Assets.Scripts.Apis
|
||||
var r = await PostAsync<JsonResult<object>>("NoAuth/v1/OnFacebookLogin", new { faceBookUserId, token, phone, pwd, Captcha });
|
||||
return GetDataAfterSetCookie(r);
|
||||
}
|
||||
|
||||
public async Task<JsonResult<object>> OnGoogleIdLoginCheck(string googleUserId, string token)
|
||||
{
|
||||
var r = await PostAsync<JsonResult<object>>("NoAuth/v1/OnGoogleIdLoginCheck", new { googleUserId, token });
|
||||
return GetDataAfterSetCookie(r);
|
||||
}
|
||||
public async Task<JsonResult<object>> OnGoogleIdLogin(string googleUserId, string token, string phone, string pwd, string Captcha)
|
||||
{
|
||||
var r = await PostAsync<JsonResult<object>>("NoAuth/v1/OnGoogleIdLogin", new { googleUserId, token, phone, pwd, Captcha });
|
||||
return GetDataAfterSetCookie(r);
|
||||
}
|
||||
|
||||
private JsonResult<object> GetDataAfterSetCookie(JsonResult<object> r)
|
||||
{
|
||||
if (r.result)
|
||||
@@ -329,6 +341,5 @@ namespace Assets.Scripts.Apis
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user