|
@@ -294,10 +294,10 @@ public class WechatMsgSendServiceImpl implements IWechatMsgSendService {
|
|
|
if (StringUtils.isBlank(ops.get())) {
|
|
if (StringUtils.isBlank(ops.get())) {
|
|
|
JSONObject body = new JSONObject();
|
|
JSONObject body = new JSONObject();
|
|
|
JSONObject jumpWxa = new JSONObject();
|
|
JSONObject jumpWxa = new JSONObject();
|
|
|
- jumpWxa.put("path","pages/earlyWarningManage/earlyWarningDetail");
|
|
|
|
|
|
|
+ jumpWxa.put("path","/pages/earlyWarningManage/earlyWarningDetail");
|
|
|
jumpWxa.put("query",id);
|
|
jumpWxa.put("query",id);
|
|
|
body.put("jump_wxa", jumpWxa);
|
|
body.put("jump_wxa", jumpWxa);
|
|
|
- String respData = HttpUtil.post(url,body);
|
|
|
|
|
|
|
+ String respData = HttpUtil.post(url,JSON.toJSONString(body));
|
|
|
log.info("get UrlScheme=====\n{}", respData);
|
|
log.info("get UrlScheme=====\n{}", respData);
|
|
|
JSONObject json = JSON.parseObject(respData);
|
|
JSONObject json = JSON.parseObject(respData);
|
|
|
if (json.getInteger("errcode") == 0) {
|
|
if (json.getInteger("errcode") == 0) {
|
|
@@ -306,6 +306,7 @@ public class WechatMsgSendServiceImpl implements IWechatMsgSendService {
|
|
|
ops.expire(7100, TimeUnit.SECONDS);
|
|
ops.expire(7100, TimeUnit.SECONDS);
|
|
|
return openlink;
|
|
return openlink;
|
|
|
}
|
|
}
|
|
|
|
|
+ log.info("调用微信未生成URL_Scheme");
|
|
|
return "";
|
|
return "";
|
|
|
}
|
|
}
|
|
|
return ops.get();
|
|
return ops.get();
|