|
@@ -44,9 +44,10 @@ public class SmsCodeController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "发送登录短信验证码")
|
|
|
@ApiImplicitParams({ @ApiImplicitParam(name = "mobile", value = "手机号", required = true, dataType = "String"),
|
|
|
- @ApiImplicitParam(name = "code", value = "验证码", required = true, dataType = "String") })
|
|
|
+ @ApiImplicitParam(name = "code", value = "验证码", required = true, dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "type", value = "验证码类型(register login)", required = true, dataType = "String")})
|
|
|
@PostMapping(value = "/sendSmsCode")
|
|
|
- public HttpResponseResult<Object> sendLoginVerifyCode1(String mobile, String code) throws Exception {
|
|
|
+ public HttpResponseResult<Object> sendLoginVerifyCode1(String mobile, String code,String type) throws Exception {
|
|
|
if(StringUtils.isEmpty(mobile) || StringUtils.isEmpty(code)){
|
|
|
return failed(SecurityConstants.PARAM_VERIFY_EXCEPTION);
|
|
|
}
|