mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
Merge branch 'dev' of http://192.168.2.2:8099/jsowell/jsowell-charger-web into dev
# Conflicts: # jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/common/CommonService.java
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user