|
|
@@ -80,7 +80,10 @@ public class DomainOrderService {
|
|
|
throw new BusinessException("四位及以下域名只能官方创建。");
|
|
|
}
|
|
|
}
|
|
|
- Map<String, Object> checkResult = check(domain);
|
|
|
+ String realName;
|
|
|
+ int dotIndex = domain.indexOf(".");
|
|
|
+ realName = domain.substring(0, dotIndex);
|
|
|
+ Map<String, Object> checkResult = check(realName);
|
|
|
if (!(Boolean) checkResult.get("result")) {
|
|
|
throw new BusinessException(checkResult.get("reason").toString());
|
|
|
}
|
|
|
@@ -97,8 +100,8 @@ public class DomainOrderService {
|
|
|
// }
|
|
|
User user = userRepo.findById(userId).orElseThrow(new BusinessException("未找到用户"));
|
|
|
if (domain.contains(".")) {
|
|
|
- int dotIndex = domain.indexOf(".");
|
|
|
- domain = domain.substring(0, dotIndex);
|
|
|
+ int dotIndex1 = domain.indexOf(".");
|
|
|
+ domain = domain.substring(0, dotIndex1);
|
|
|
}
|
|
|
|
|
|
DomainOrder domainOrder = new DomainOrder();
|