|
@@ -2,6 +2,7 @@ package com.fdkankan.fusion.task;
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
import cn.hutool.log.Log;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -51,6 +52,7 @@ public class InitService {
|
|
|
writerStateFile();
|
|
|
delRedisKey();
|
|
|
cleanRedisKey();
|
|
|
+ getSettingJson();
|
|
|
}
|
|
|
|
|
|
|
|
@@ -210,4 +212,17 @@ public class InitService {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ private void getSettingJson() {
|
|
|
+ try{
|
|
|
+ String path = CacheUtil.installPath + "bin" + File.separator + "resources" + File.separator + "static" + File.separator +"setting.json";
|
|
|
+ String s = FileUtil.readUtf8String(new File(path));
|
|
|
+ JSONObject jsonObject = JSON.parseObject(s);
|
|
|
+ Boolean ga = jsonObject.getBoolean("ga");
|
|
|
+ System.out.println(ga);
|
|
|
+
|
|
|
+ }catch (Exception e){
|
|
|
+ log.info("获取settingjson失败:{}",e);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|