|
|
@@ -287,7 +287,9 @@ public class WechatMsgSendServiceImpl implements IWechatMsgSendService {
|
|
|
* @Return java.lang.String
|
|
|
**/
|
|
|
public String getUrlScheme(Long id) {
|
|
|
- String url = weChatProperties.getUrlScheme()+getAccessToken();
|
|
|
+ String accessToken = getAccessToken();
|
|
|
+ log.info("获取的token = {}",accessToken);
|
|
|
+ String url = weChatProperties.getUrlScheme()+accessToken;
|
|
|
//查询是否还有缓存
|
|
|
BoundValueOperations<String, String> ops = redisTemplate.boundValueOps("URL_Scheme");
|
|
|
//缓存时长
|
|
|
@@ -295,12 +297,12 @@ public class WechatMsgSendServiceImpl implements IWechatMsgSendService {
|
|
|
JSONObject body = new JSONObject();
|
|
|
JSONObject jumpWxa = new JSONObject();
|
|
|
JSONObject query = new JSONObject();
|
|
|
- query.put("id",id);
|
|
|
+ query.put("id","id="+id);
|
|
|
jumpWxa.put("path","/pages/earlyWarningManage/earlyWarningDetail");
|
|
|
jumpWxa.put("query",query);
|
|
|
body.put("jump_wxa", jumpWxa);
|
|
|
String respData = HttpUtil.post(url,JSON.toJSONString(body));
|
|
|
- log.info("get UrlScheme=====\n{}", respData);
|
|
|
+ log.info("UrlScheme 返回参数=====》{}", respData);
|
|
|
JSONObject json = JSON.parseObject(respData);
|
|
|
if (json.getInteger("errcode") == 0) {
|
|
|
String openlink = json.getString("openlink");
|