Commit 847eee50 authored by shiyu's avatar shiyu

关注公众号回调通知

parent f753ed11
...@@ -33,8 +33,8 @@ dts: ...@@ -33,8 +33,8 @@ dts:
# 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3 # 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3
key-path: xxxxx key-path: xxxxx
#微信公众号服务器配置信息 #微信公众号服务器配置信息
officialaccount—appid: wx7db8eb146a194083 officialaccount—appid: wx9f0fd13852b2ddda
officialaccount-secret: daecb3de53841fe1a787bc9849ac3406 officialaccount-secret: c939b67a6536b3556c9a70fcbe009d86
officialaccount-token: Uu6GHYOiP1xJ6GaBMyXfnITufAGJTe3Q officialaccount-token: Uu6GHYOiP1xJ6GaBMyXfnITufAGJTe3Q
officialaccount-key: noeN1amYRvzrVmE2GnC5VnsIfgPEmv6bhX54wJOARlM officialaccount-key: noeN1amYRvzrVmE2GnC5VnsIfgPEmv6bhX54wJOARlM
get-officialaccount-accesstoken-url: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s get-officialaccount-accesstoken-url: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s
......
...@@ -24,8 +24,8 @@ dts: ...@@ -24,8 +24,8 @@ dts:
# 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3 # 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3
key-path: xxxxx key-path: xxxxx
#微信公众号服务器配置信息 #微信公众号服务器配置信息
officialaccount—appid: wx7db8eb146a194083 officialaccount—appid: wx9f0fd13852b2ddda
officialaccount-secret: daecb3de53841fe1a787bc9849ac3406 officialaccount-secret: c939b67a6536b3556c9a70fcbe009d86
officialaccount-token: Uu6GHYOiP1xJ6GaBMyXfnITufAGJTe3Q officialaccount-token: Uu6GHYOiP1xJ6GaBMyXfnITufAGJTe3Q
officialaccount-key: noeN1amYRvzrVmE2GnC5VnsIfgPEmv6bhX54wJOARlM officialaccount-key: noeN1amYRvzrVmE2GnC5VnsIfgPEmv6bhX54wJOARlM
get-officialaccount-accesstoken-url: https://api.weixin.qq.com/cgi-bin/stable_token get-officialaccount-accesstoken-url: https://api.weixin.qq.com/cgi-bin/stable_token
......
...@@ -54,9 +54,9 @@ public class OfficialAccountSubscribeRecordServiceImpl implements OfficialAccoun ...@@ -54,9 +54,9 @@ public class OfficialAccountSubscribeRecordServiceImpl implements OfficialAccoun
try { try {
boolean flag = officialAccountSubscribeRecordDao.isSubscribed(unionid); boolean flag = officialAccountSubscribeRecordDao.isSubscribed(unionid);
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
// map.put("isSubscribed", flag); map.put("isSubscribed", flag);
//暂时先默认为关注 //暂时先默认为关注
map.put("isSubscribed", true); // map.put("isSubscribed", true);
map.put("url", OFFICAL_ACCOUNT_URL); map.put("url", OFFICAL_ACCOUNT_URL);
return Result.success(map); return Result.success(map);
} catch (Exception e) { } catch (Exception e) {
......
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