debug:用户登录

This commit is contained in:
墨大叔 2024-10-14 09:30:48 +08:00
parent 92444077e6
commit 70bfea97e7

View File

@ -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;
}
}