|
|
@@ -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;
|