Unverified Commit ba2fe6ad authored by 乔占卫's avatar 乔占卫 Committed by GitHub
Browse files

Merge pull request #168 from qiaozhanwei/dev-20190415

tenant code  check update
parents f44177b4 74175cbd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ public class TenantService extends BaseService{
    Tenant tenant = new Tenant();
    Date now = new Date();

    if (!tenantCode.matches("^[0-9a-zA-Z_.]{1,}$") || tenantCode.startsWith("-")){
    if (!tenantCode.matches("^[0-9a-zA-Z_.-]{1,}$") || tenantCode.startsWith("-") || tenantCode.startsWith(".")){
      putMsg(result, Status.VERIFY_TENANT_CODE_ERROR);
      return result;
    }