mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-25 14:54:44 +08:00
travis-ci devezhao committed
This commit is contained in:
parent
4aec020e25
commit
e518b11f4c
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue