购买api
This commit is contained in:
@@ -755,6 +755,18 @@ namespace Home.Controllers
|
||||
return await m_ProductAccountService.UpdateAccountPwd(request);
|
||||
}
|
||||
|
||||
[HttpPost, AllowAnonymous]
|
||||
public async Task<ApiResult> ApiUpdateAccountPwd([FromBody]UpdateAccountPwdRequest request)
|
||||
{
|
||||
//通过apikey获取用户信息
|
||||
var userEntity = m_UserService.Query(m => m.apikey == request.apikey).FirstOrDefault();
|
||||
if (userEntity == null)
|
||||
{
|
||||
return new ApiResult(ResultCode.C_INVALID_ERROR, "apikey不正确");
|
||||
}
|
||||
return await m_ProductAccountService.ApiUpdateAccountPwd(request,userEntity.Id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user