debug:用户登录
This commit is contained in:
parent
92444077e6
commit
70bfea97e7
|
@ -52,12 +52,9 @@ public class AppAuthController extends BaseController {
|
|||
public AjaxResult wxLogin(@RequestBody @Validated WxLoginBody body)
|
||||
{
|
||||
AjaxResult ajax = AjaxResult.success();
|
||||
// 获取微信openId
|
||||
String wxOpenId = loginService.getWxOpenId(body.getLoginCode());
|
||||
// 生成令牌
|
||||
String token = loginService.wxLogin(body);
|
||||
ajax.put(Constants.TOKEN, token);
|
||||
ajax.put("wxOpenId", wxOpenId);
|
||||
return ajax;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user