# Conflicts:
#	jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/common/CommonService.java
This commit is contained in:
Lemon
2024-03-20 08:20:35 +08:00
100 changed files with 473 additions and 493 deletions

View File

@@ -1,5 +1,6 @@
package com.jsowell.thirdparty.amap.util;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -85,7 +86,7 @@ public class AMapUtils {
*/
public static Map<String, String> generateParamMap(JSONObject bizContent, String SPI) throws Exception {
Map<String, String> map = new LinkedHashMap<>();
map.put("biz_content", JSONObject.toJSONString(bizContent));
map.put("biz_content", JSON.toJSONString(bizContent));
map.put("app_id", APP_ID);
map.put("utc_timestamp", String.valueOf(System.currentTimeMillis()));
map.put("version", "1.0");
@@ -121,7 +122,7 @@ public class AMapUtils {
JSONObject respObj = JSONObject.parseObject(resp.getBody());
// logger.info("高德返回结果:{}", respObj);
// System.out.println("高德返回结果:" + respObj);
return JSONObject.toJSONString(respObj);
return JSON.toJSONString(respObj);
}
return null;
}