|
|
|
@@ -110,10 +110,10 @@ public class KeTuoUtil { |
|
|
|
params.put("appId", appId); |
|
|
|
params.put("parkId", parkId); |
|
|
|
params.put("serviceCode", serviceCode); |
|
|
|
params.put("ts", String.valueOf(Calendar.getInstance().getTimeInMillis())); |
|
|
|
params.put("ts", Calendar.getInstance().getTimeInMillis()); |
|
|
|
params.put("key", paramsSign(params, appSercet)); |
|
|
|
params.put("reqId", Utility.generate32UUID()+String.valueOf(Calendar.getInstance().getTimeInMillis())); |
|
|
|
httpPost.setEntity(new StringEntity(JSONObject.toJSONString(params),ContentType.create("application/json","utf-8"))); |
|
|
|
httpPost.setEntity(new StringEntity(JSONObject.toJSONString(params))); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error(e.getLocalizedMessage(),e); |
|
|
|
return null; |
|
|
|
@@ -169,6 +169,7 @@ public class KeTuoUtil { |
|
|
|
}); |
|
|
|
//拼接appSecret |
|
|
|
String temp = Joiner.on("&").withKeyValueSeparator("=").join(params).concat("&").concat(appSecret); |
|
|
|
System.out.println(temp); |
|
|
|
return md5(temp).toUpperCase(); |
|
|
|
} |
|
|
|
|
|
|
|
|