|
@@ -47,6 +47,14 @@ public class SystemRestController {
|
|
|
return userAuthService.sendSmsCode(key, token, phone);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取短信验证码接口")
|
|
|
+ @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);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "校验短信验证码接口", hidden = true)
|
|
|
@RequestMapping(value = "/check/sms/code", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
public Result checkSmsCode(@RequestHeader String key, @RequestHeader String token, @RequestParam String phone, @RequestParam String code) throws Exception {
|