cc 4 miesięcy temu
rodzic
commit
5cf2748cb8

+ 1 - 1
src/main/java/com/qingjian/common/constants/PathConst.java

@@ -75,7 +75,7 @@ public class PathConst {
     public static final Path AGENT_CONF_PATH = RUN_QINGJIAN_PATH.resolve("conf").resolve("a4961dbp.json");
 
     public static final Path AGENT_CONF_PATH_YML = RUN_QINGJIAN_PATH.resolve("conf").resolve("config.yml");
-    public static final Path LOCK_FILE = RUN_QINGJIAN_PATH.resolve("lock.lck");
+    public static final Path LOCK_FILE = ROOT_PATH.resolve("lock.lck");
     /**
      * 临时文件路径
      */

+ 2 - 0
src/main/java/com/qingjian/common/utils/TowerUtils.java

@@ -110,6 +110,7 @@ public class TowerUtils {
         int queryResult = CellDll.INSTANCE_DLL.cell_query_combined(mcc, mnc, lac, ci,
                 CellDll.COORD_WGS84, latitude, longitude, combined, combined.length);
 
+        log.info("mcc:{},mnc:{}  lac:{}  ci:{}  基站查询结果:{}", mcc, mnc, lac, ci, queryResult);
         // 如果查询失败,返回空数组
         if (queryResult != 0) {
             return result;
@@ -125,6 +126,7 @@ public class TowerUtils {
 
         // 逆地理编码依旧使用原始 WGS84 坐标,保持与现有 native 接口行为一致。
         result[3] = StrUtil.str(combined, StandardCharsets.UTF_8);
+        log.info("mcc:{},mnc:{}  lac:{}  ci:{}  基站查询结果:{},  result:{}", mcc, mnc, lac, ci, queryResult, result.toString());
         return result;
     }
 }