zoujiajian 3 yıl önce
ebeveyn
işleme
3befbf6d7a

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/cps/impl/CpsManageServiceImpl.java

@@ -63,7 +63,7 @@ public class CpsManageServiceImpl implements CpsManageService {
 		}
 		String code = StringUtil.getRandomCodeStr(6);
 		if (type == 1) {
-			if (StrUtil.isEmpty(login)) {
+			if (StrUtil.isEmpty(login) || (86 == cid && !Validator.isMobile(phone))) {
 				throw BusinessRuntimeException.getInstance("请输入正确的手机号");
 			}
 			SmsUtil.sendTencent(cid, login, code);

+ 1 - 1
netflix-web/src/main/java/com/cyksj/web/controller/user/AuthorizationController.java

@@ -318,7 +318,7 @@ public class AuthorizationController {
     @GetMapping("/get/phone/code")
     @NoSubmit
     public Result<String> getPhoneCode(String phone, Integer digit, @RequestParam(defaultValue = "0") Boolean isFree, Integer cid) {
-        if (StrUtil.isBlank(phone)) {
+        if (StrUtil.isBlank(phone) || (86 == cid && !Validator.isMobile(phone))) {
             throw BusinessRuntimeException.getInstance("请输入正确的手机号");
         }
         if (cid == null) cid = 86;