Procházet zdrojové kódy

jsonobject put 修改为set

lyhzzz před 2 roky
rodič
revize
c732906798

+ 2 - 2
src/main/java/com/fdkankan/ucenter/common/utils/AuthLicenseUtil.java

@@ -51,8 +51,8 @@ public class AuthLicenseUtil {
             FileUtil.del(results);
 
             JSONObject licenseDataJson = new JSONObject();
-            licenseDataJson.put("split_type", "SPLIT_V23");
-            licenseDataJson.put("skybox_type", "SKYBOX_V5");
+            licenseDataJson.set("split_type", "SPLIT_V23");
+            licenseDataJson.set("skybox_type", "SKYBOX_V5");
             FileUtils.writeFile(licensePath + File.separator + "data.json", licenseDataJson.toString());
             ShellUtil.execCmd(String.format(cmd,licensePath));
         }