travis-ci devezhao committed

This commit is contained in:
devezhao 2019-01-30 15:42:30 +08:00
parent 4aec020e25
commit e518b11f4c
2 changed files with 6 additions and 1 deletions

View file

@ -86,7 +86,8 @@ public class AES {
* @return
*/
public static String getPassKey() {
String key = StringUtils.defaultIfEmpty(System.getProperty("rbpass"), "REBUILD2018");
String key = StringUtils.defaultIfEmpty(System.getenv("rbpass"), System.getProperty("rbpass"));
key = StringUtils.defaultIfEmpty(key, "REBUILD2018");
key = StringUtils.leftPad(key, 16, "0").substring(0, 16);
return key;
}

View file

@ -37,5 +37,9 @@ public class MiscTest {
public void testJson2String() throws Exception {
System.out.println(JSON.toJSONString(ID.newId(0)));
System.out.println(JSON.toJSONString(new Date()));
System.out.println(System.getenv("rbpass"));
System.out.println(System.getProperty("rbpass"));
}
}