|
@@ -119,11 +119,10 @@ public class AuthController extends ControllerSupport {
|
|
|
|
|
|
@ApiOperation(value = "发送验证码", notes = "")
|
|
@ApiOperation(value = "发送验证码", notes = "")
|
|
@PostMapping("sendVerificationCode4Student")
|
|
@PostMapping("sendVerificationCode4Student")
|
|
- public void sendVerificationCode4Student(@RequestParam(required = true) Long rootOrgId,
|
|
|
|
- @RequestParam(required = true) String phone,
|
|
|
|
|
|
+ public void sendVerificationCode4Student(@RequestParam(required = true) String phone,
|
|
@RequestParam(required = true) Boolean bound) {
|
|
@RequestParam(required = true) Boolean bound) {
|
|
|
|
|
|
- Boolean hasBeBound = studentService.hasBeBound(rootOrgId, phone);
|
|
|
|
|
|
+ Boolean hasBeBound = studentService.hasBeBound(phone);
|
|
if (bound && !hasBeBound.equals(bound)) {
|
|
if (bound && !hasBeBound.equals(bound)) {
|
|
throw new StatusException("B-002050", "手机号未被关联");
|
|
throw new StatusException("B-002050", "手机号未被关联");
|
|
} else if ((!bound) && hasBeBound.equals(bound)) {
|
|
} else if ((!bound) && hasBeBound.equals(bound)) {
|