Quellcode durchsuchen

fix_sms

(cherry picked from commit cc14d26baf8e7022c9f96409561b929592231cd5)
x1ongzhu vor 2 Jahren
Ursprung
Commit
c054ad3242
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  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")