xiongzhu 3 жил өмнө
parent
commit
3ecc207f14

+ 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")