|
@@ -197,7 +197,6 @@ public class RequestSTKServiceImpl implements RequestSTKService {
|
|
|
/**
|
|
/**
|
|
|
* POST请求头部参数封装
|
|
* POST请求头部参数封装
|
|
|
* */
|
|
* */
|
|
|
- @Synchronized
|
|
|
|
|
public Map<String,String> getHeaderMap(Object dto) throws Exception {
|
|
public Map<String,String> getHeaderMap(Object dto) throws Exception {
|
|
|
|
|
|
|
|
log.info("STK,加密前参数:{}",JSONObject.toJSONString(dto));
|
|
log.info("STK,加密前参数:{}",JSONObject.toJSONString(dto));
|
|
@@ -220,12 +219,13 @@ public class RequestSTKServiceImpl implements RequestSTKService {
|
|
|
/**
|
|
/**
|
|
|
* 获取深投控加密参数
|
|
* 获取深投控加密参数
|
|
|
* */
|
|
* */
|
|
|
|
|
+ @Synchronized
|
|
|
public String getSign(Object dto) throws Exception {
|
|
public String getSign(Object dto) throws Exception {
|
|
|
|
|
|
|
|
//时间戳
|
|
//时间戳
|
|
|
String timestamp = Long.toString(System.currentTimeMillis());
|
|
String timestamp = Long.toString(System.currentTimeMillis());
|
|
|
|
|
|
|
|
- String content = dto.toString();
|
|
|
|
|
|
|
+ String content = JSONObject.toJSONString(dto);
|
|
|
|
|
|
|
|
//加签方法第一个参数
|
|
//加签方法第一个参数
|
|
|
StringBuilder signBuilder = new StringBuilder("appid").append("=").append(STK_APP_ID).append("&")
|
|
StringBuilder signBuilder = new StringBuilder("appid").append("=").append(STK_APP_ID).append("&")
|