Commit 32d7c5e9 by 翁国栋

投保文件配置

parent 3d3f63c5
......@@ -150,20 +150,20 @@ public class InsureContorll {
* @param sign
* @return
*/
protected static Map setParams(String sign, String appid, String secret) {
protected static Map setParams(String sign, String uappid, String usecret) {
/*当前时间戳*/
long timestamp = System.currentTimeMillis() / 1000;
log.info("时间戳" + timestamp);
Map paramsMap = Maps.newHashMap();
paramsMap.put("pid", appid);
paramsMap.put("pid", uappid);
paramsMap.put("timestamp", String.valueOf(timestamp));
paramsMap.put("trace_id", appid + timestamp + new Random().nextInt((9999 - 100) + 1) + 10);
paramsMap.put("trace_id", uappid + timestamp + new Random().nextInt((9999 - 100) + 1) + 10);
// paramsMap.put("sign",Md5.md5(appid+secret+timestamp+sign.trim()));
String value;
if (sign == null) {
value = appid + secret + timestamp;
value = uappid + usecret + timestamp;
} else {
value = appid + secret + timestamp + sign;
value = uappid + usecret + timestamp + sign;
log.info("body参数======" + sign);
}
paramsMap.put("sign", DigestUtils.md5Hex(value));
......
......@@ -283,9 +283,9 @@ insure:
issue: 'https://portal.unistar-ins.com/cps/Labor/Policy/issue'
#保全appid
appidq: '1000711000604326196'
appidq: '1000706050307154062'
#保全 secret
secretq: 'a2da17a2797c63dff9172df50af9da65'
secretq: 'c1e2e8dcf231c0d0dfc883c09cd42c5b'
#保全上传文件
uploadUrlq: 'https://portal.unistar-ins.com/fuli/Home/Index/file_upload'
#保全申请
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment