|
|
@@ -54,6 +54,11 @@ public class EnterpriseServiceImpl implements EnterpriseService {
|
|
|
private RegisterRecordDao registerRecordDao;
|
|
|
@Autowired
|
|
|
private CommonDao commonDao;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 不可用的SAAS域名
|
|
|
+ */
|
|
|
+ private static final String[] UNUSABLE_SAASURL = {"www", "uas", "make", "trade", "usoft", "usoftchina", "usofterp", "report", "", "ubtob", "test"};
|
|
|
|
|
|
@Override
|
|
|
public String bussinessCodeEnable(String code) {
|
|
|
@@ -419,6 +424,11 @@ public class EnterpriseServiceImpl implements EnterpriseService {
|
|
|
|
|
|
@Override
|
|
|
public boolean isSaasUrlUseable(String saasUrl) {
|
|
|
+ for(String unusableSaasUrl : UNUSABLE_SAASURL) {
|
|
|
+ if(unusableSaasUrl.equals(saasUrl)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
return CollectionUtils.isEmpty(enterpriseDao.findByEnSaasUrl(saasUrl));
|
|
|
}
|
|
|
|