weiwenhai преди 6 години
родител
ревизия
3bd2c50288

+ 2 - 5
src/main/java/cn/com/qmth/examcloud/app/controller/SystemRestController.java

@@ -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)

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/service/UserAuthService.java

@@ -93,7 +93,7 @@ public interface UserAuthService {
      * @return
      * @throws Exception
      */
-    Result code4Student(Long rootOrgId, String phone, Boolean bound) throws Exception;
+    Result code4Student(String phone, Boolean bound) throws Exception;
 
     /**
      * 保存用户绑定的手机号

+ 1 - 2
src/main/java/cn/com/qmth/examcloud/app/service/impl/UserAuthServiceImpl.java

@@ -141,11 +141,10 @@ public class UserAuthServiceImpl implements UserAuthService {
     }
     
     @Override
-	public Result code4Student(Long rootOrgId, String phone, Boolean bound) throws Exception {
+	public Result code4Student(String phone, Boolean bound) throws Exception {
     	//封装请求参数
     	final String requestUrl = String.format("%s/api/ecs_core/auth/sendVerificationCode4Student", propertyService.getUserAuthUrl());
     	RequestBody formBody = new FormBody.Builder()
-    			.add("rootOrgId", rootOrgId.toString())
     			.add("phone", phone)
 		        .add("bound", bound.toString())
 		        .build();