|
@@ -43,16 +43,13 @@ public class SystemRestController {
|
|
|
@ApiOperation(value = "获取短信验证码接口")
|
|
|
@RequestMapping(value = "/send/sms/code", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
public Result sendSmsCode(@RequestHeader String key, @RequestHeader String token, @RequestParam String phone) throws Exception {
|
|
|
- //return smsService.sendSmsCode(key, token, phone);
|
|
|
return userAuthService.sendSmsCode(key, token, phone);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取短信验证码接口(不带token)")
|
|
|
@RequestMapping(value = "/send/sms/code4Student", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
- public Result sendSmsCode(@RequestParam(required = true) Long rootOrgId,
|
|
|
- @RequestParam(required = true) String phone) throws Exception {
|
|
|
- //return smsService.sendSmsCode(key, token, phone);
|
|
|
- return userAuthService.code4Student(rootOrgId, phone, true);
|
|
|
+ public Result sendSmsCode(@RequestParam(required = true) String phone) throws Exception {
|
|
|
+ return userAuthService.code4Student(phone, true);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "校验短信验证码接口", hidden = true)
|