diff --git a/src/com/qy/ui/ModifySdkUi.java b/src/com/qy/ui/ModifySdkUi.java index b751cb9..53de251 100644 --- a/src/com/qy/ui/ModifySdkUi.java +++ b/src/com/qy/ui/ModifySdkUi.java @@ -35,7 +35,7 @@ public class ModifySdkUi extends JFrame{ private static final long serialVersionUID = 1L; public ModifySdkUi() { setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); - setTitle("\u7B2C\u4E09\u65B9SDK\u4FEE\u6539\u5DE5\u5177v1.4"); + setTitle("\u7B2C\u4E09\u65B9SDK\u4FEE\u6539\u5DE5\u5177v1.5"); // TODO Auto-generated constructor stub userEncrypt=new HashMap(); initView(); diff --git a/src/com/qy/utils/AutoRandomAdSDK.java b/src/com/qy/utils/AutoRandomAdSDK.java index c7742ce..0683cf9 100644 --- a/src/com/qy/utils/AutoRandomAdSDK.java +++ b/src/com/qy/utils/AutoRandomAdSDK.java @@ -515,9 +515,13 @@ public class AutoRandomAdSDK { } else { tmpName = name; } - - String nName = config.getJSONObject("rename") - .getString(tmpName.contains("$") ? tmpName.split("\\$")[0] : tmpName); + String nName; + if(config.getJSONObject("rename").isNull(tmpName.contains("$") ? tmpName.split("\\$")[0] : tmpName)){ + nName=name; + }else{ + nName = config.getJSONObject("rename") + .getString(tmpName.contains("$") ? tmpName.split("\\$")[0] : tmpName); + } if (nName.contains("[random]")) { String tName = Tools.getRandomString(new Random().nextInt(6) + 2); nName = nName.replace("[random]", tName);