فهرست منبع

屏蔽旧短信接口

xiongzhu 4 سال پیش
والد
کامیت
3ecc207f14
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      src/main/java/com/izouma/nineth/web/SmsController.java

+ 5 - 5
src/main/java/com/izouma/nineth/web/SmsController.java

@@ -22,11 +22,11 @@ public class SmsController {
 
 
     @GetMapping("/sendVerify")
     @GetMapping("/sendVerify")
     public String sendVerify(@RequestParam String phone) {
     public String sendVerify(@RequestParam String phone) {
-        //throw new BusinessException("此接口已停用,请重启APP或刷新网页");
-        if (!Pattern.matches(Constants.Regex.PHONE, phone)) {
-            throw new BusinessException("请输入正确的手机号");
-        }
-        return smsService.sendVerify(phone);
+        throw new BusinessException("此接口已停用,请重启APP或刷新网页");
+//        if (!Pattern.matches(Constants.Regex.PHONE, phone)) {
+//            throw new BusinessException("请输入正确的手机号");
+//        }
+//        return smsService.sendVerify(phone);
     }
     }
 
 
     @GetMapping("/sendSecureVerify")
     @GetMapping("/sendSecureVerify")