Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全网发布时不通过 #1

Closed
TonyLuo opened this issue Mar 20, 2018 · 7 comments
Closed

全网发布时不通过 #1

TonyLuo opened this issue Mar 20, 2018 · 7 comments

Comments

@TonyLuo
Copy link

TonyLuo commented Mar 20, 2018

名称 状态
[组件ticket正确接收] 成功
[生成预授权码] 成功
[获取授权code] 成功
[授权] 成功
[返回Api文本消息] 失败
[返回普通文本消息] 成功
[发送事件消息] 失败
[取消授权] 成功

查看log时发现authorizer_refresh_token 是null,不知道是不是有影响

2018-03-20 15:41:25,647 ERROR [XNIO-2 task-13] WxOpenServiceDemo:
【请求地址】: https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token=token
【请求参数】:{"component_appid":"component_appid","authorizer_appid":"authorizer_appid","authorizer_refresh_token":null}
【错误信息】:{"errcode":61023,"errmsg":"refresh_token is invalid hint: [458N06852994]"}
2018-03-20 15:41:25,647 ERROR [XNIO-2 task-13] NotifyController: callback
me.chanjar.weixin.common.exception.WxErrorException: {"errcode":61023,"errmsg":"refresh_token is invalid hint: [458N06852994]"}

@007gzs
Copy link
Member

007gzs commented Mar 20, 2018

LOG是你直接复制的么?所有参数都不对啊,
{"component_appid":"component_appid","authorizer_appid":"authorizer_appid","authorizer_refresh_token":null}
这些应该都是对应的APPID才对啊,你的ConfigStorage怎么设置的?

@TonyLuo
Copy link
Author

TonyLuo commented Mar 20, 2018

"component_appid和"authorizer_appid"," 做了修改,因为不想把这些信息发到网上

@TonyLuo
Copy link
Author

TonyLuo commented Mar 20, 2018

这个项目就是修改了对应的appid和redis的服务器地址,其他都没怎么改
@PostConstruct
public void init() {
WxOpenInRedisConfigStorage inRedisConfigStorage = new WxOpenInRedisConfigStorage(getJedisPool());
inRedisConfigStorage.setComponentAppId(wechatOpenProperties.getComponentAppId());
inRedisConfigStorage.setComponentAppSecret(wechatOpenProperties.getComponentSecret());
inRedisConfigStorage.setComponentToken(wechatOpenProperties.getComponentToken());
inRedisConfigStorage.setComponentAesKey(wechatOpenProperties.getComponentAesKey());
setWxOpenConfigStorage(inRedisConfigStorage);

@007gzs
Copy link
Member

007gzs commented Mar 20, 2018

授权回调内容是按照DEMO里的么

@007gzs
Copy link
Member

007gzs commented Mar 20, 2018

确认下 String out = wxOpenService.getWxOpenComponentService().route(inMessage); 这行是否正确执行

@TonyLuo
Copy link
Author

TonyLuo commented Mar 25, 2018

多试几次又可以了。不知道是不是开放平台的问题

@TonyLuo TonyLuo closed this as completed Mar 25, 2018
@ForeverIkaros
Copy link

发送事件消息进不去怎么破?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants