AnonymousLogin
This commit is contained in:
parent
8e9caee653
commit
cfdba65224
|
|
@ -104,6 +104,12 @@ namespace CoreCms.Net.IServices
|
|||
Task<WebApiCallBack> SmsLogin(FMWxAccountCreate entity,
|
||||
int loginType = (int)GlobalEnumVars.LoginType.WeChatPhoneNumber, int platform = 1);
|
||||
|
||||
/// <summary>
|
||||
/// 匿名登录
|
||||
/// </summary>
|
||||
/// <param name="user_id"></param>
|
||||
/// <returns></returns>
|
||||
Task<WebApiCallBack> AnonymousLogin(int user_id);
|
||||
|
||||
/// <summary>
|
||||
/// 根据条件查询分页数据
|
||||
|
|
|
|||
|
|
@ -288,6 +288,19 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
|||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 匿名登录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Authorize]
|
||||
public async Task<WebApiCallBack> AnonymousLogin()
|
||||
{
|
||||
var userId = _user.ID;
|
||||
var jm = new WebApiCallBack();
|
||||
jm = await _userServices.AnonymousLogin(userId);
|
||||
return jm;
|
||||
}
|
||||
|
||||
#region wx.login登陆成功之后发送的请求=========================================================
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user