|
@@ -236,7 +236,7 @@ public class LoginController extends BladeController {
|
|
@ApiOperationSupport(order = 2)
|
|
@ApiOperationSupport(order = 2)
|
|
@ApiOperation(value = "微信授权登录", tags = "通过 getPhoneNumberCode 获取手机号")
|
|
@ApiOperation(value = "微信授权登录", tags = "通过 getPhoneNumberCode 获取手机号")
|
|
public R wxAuthLogin(@ApiParam(value = "微信code", required = true) @RequestParam String code,
|
|
public R wxAuthLogin(@ApiParam(value = "微信code", required = true) @RequestParam String code,
|
|
- @ApiParam(value = "获取手机号的code,五分钟有效", required = true) @RequestParam String getPhoneNumberCode) {
|
|
|
|
|
|
+ @ApiParam(value = "获取手机号的code,五分钟有效", required = false) @RequestParam(required = false) String getPhoneNumberCode) {
|
|
|
|
|
|
String tenantId = WebUtil.getRequest().getHeader(TokenUtil.TENANT_HEADER_KEY);
|
|
String tenantId = WebUtil.getRequest().getHeader(TokenUtil.TENANT_HEADER_KEY);
|
|
TokenParameter tokenParameter = new TokenParameter();
|
|
TokenParameter tokenParameter = new TokenParameter();
|
|
@@ -258,6 +258,15 @@ public class LoginController extends BladeController {
|
|
return R.data(TokenUtil.createAuthInfo(userInfo));
|
|
return R.data(TokenUtil.createAuthInfo(userInfo));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiLog("判断微信用户是否注册过")
|
|
|
|
+ @PostMapping("/login/isUser")
|
|
|
|
+ @ApiOperationSupport(order = 2)
|
|
|
|
+ @ApiOperation(value = "判断微信用户是否注册过")
|
|
|
|
+ public R<Boolean> isUser(@ApiParam(value = "微信code", required = true) @RequestParam String code) {
|
|
|
|
+ Boolean b = userService.isUser(code);
|
|
|
|
+ return R.data(b);
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiLog("登录用户验证-手机验证码登录")
|
|
@ApiLog("登录用户验证-手机验证码登录")
|
|
@PostMapping("/login_phone")
|
|
@PostMapping("/login_phone")
|
|
@ApiOperationSupport(order = 3)
|
|
@ApiOperationSupport(order = 3)
|