ソースを参照

补充缺失的同意常量

huxz 7 年 前
コミット
cdd412f632
2 ファイル変更43 行追加1 行削除
  1. 3 1
      build.gradle
  2. 40 0
      sso-common/src/main/java/com/uas/sso/core/Const.java

+ 3 - 1
build.gradle

@@ -12,9 +12,11 @@ subprojects {
   repositories {
     /*mavenLocal()*/
 
-    jcenter()
     maven { url 'http://113.105.74.141:8081/artifactory/libs-release' }
+    maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
+    jcenter()
     maven { url "http://113.105.74.141:8081/artifactory/libs-snapshot" }
+
   }
 
   [compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'

+ 40 - 0
sso-common/src/main/java/com/uas/sso/core/Const.java

@@ -27,4 +27,44 @@ public class Const {
      * 香港手机号正则
      */
     public static final String REGEXP_MOBILE_HONGKONG = "[0-9]{8}";
+
+    /**
+     * 用户uu号正则
+     */
+    public static String REGEXP_USERUU_NUMBER = "[0-9]{5,10}";
+
+    /**
+     * 中国大陆
+     */
+    public static final String CONTINENT = "continent";
+
+    /**
+     * 香港
+     */
+    public static final String HONGKONG = "Hongkong";
+
+    /**
+     * 密码加密方式
+     */
+    public static final String ENCRY_FORMAT = "$password{$salt}";
+
+    /**
+     * 密码
+     */
+    public static final String ENCRY_PARAM_PASSWORD = "$password";
+
+    /**
+     * 盐值
+     */
+    public static final String ENCRY_PARAM_SALT = "$salt";
+
+    public static final int NO = 0;
+
+    public static final int YES = 1;
+
+    public static final String SUCCESS = "success";
+
+    public static final String ERROR = "error";
+
+    public static Long SPACEUU_PERSONAL = 1L;
 }