|
@@ -112,14 +112,20 @@ public class WxLoginController
|
|
|
}
|
|
|
|
|
|
@ApiOperation("考前获取用户小程序openid")
|
|
|
- @PostMapping("/wx/exam/getOpenid")
|
|
|
+ @PostMapping("/app/common/wx/exam/getOpenid")
|
|
|
public AjaxResult<Void> getExamOpenid(@RequestBody WxLoginBody loginBody)
|
|
|
{
|
|
|
- ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
- String openId = wxLoginService.getExamWxOpenId(loginBody,loginUser.getUser().getUserId());
|
|
|
+ String openId = wxLoginService.getExamWxOpenId(loginBody);
|
|
|
return AjaxResult.success(openId);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("考前获取公众号openid")
|
|
|
+ @PostMapping("/app/common/wx/gzh_bind")
|
|
|
+ public AjaxResult wx_gzh_bind(@RequestBody WxLoginBody loginBody)
|
|
|
+ {
|
|
|
+ return AjaxResult.success(wxLoginService.bindGzhUnionIdUser(loginBody));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation("小程序校验PC登录二维码")
|
|
|
@PostMapping("/scan_login_check")
|
|
|
public AjaxResult scanLoginCheck(@RequestBody WxLoginBody loginBody)
|