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

生产中应用时发现偶尔会出现access_token过期,因为刷新失败了,加入重试机制,直到成功 #199

Closed
wants to merge 4 commits into from

Conversation

aroundsm
Copy link

生产中应用时发现偶尔会出现access_token过期,因为刷新失败了,加入重试机制,直到成功

@liyiorg
Copy link
Owner

liyiorg commented Apr 26, 2019

这种方式不可取,TokenManager 仅用于单例模式。如网络中断会出现死循环,secret 可能会在中途修改。实际业务中可使用 redis 存储access_token ,并可管理介入修改secret 。刷新失败可考虑重试次数限制。

@dearMOMO
Copy link

我想知道怎么使用redis存储access_token 呢,希望提供相关demo 谢谢

@liyiorg
Copy link
Owner

liyiorg commented Jun 11, 2019

授权码换openid,添加字段sub_openid . 这个有没有文档依据?

@aroundsm
Copy link
Author

@liyiorg
Copy link
Owner

liyiorg commented Jun 13, 2019

@aroundsm 将在本月内添加 tools/authcodetoopenid 接口

liyiorg pushed a commit that referenced this pull request Jul 18, 2019
#207 分账接收方添加参数 relation_type,custom_relation
#208 第三方平台代小程序提交代码审核新增参数 third_class,first_id,second_id,third_id
@liyiorg
Copy link
Owner

liyiorg commented Sep 3, 2019

@aroundsm 请将车主服务相关接口提交到 dev 分支,并将代码格式做下调整。
如官方接口uri 地址 https://api.mch.weixin.qq.com/vehicle/partnerpay/notification
则接口类命名:
VehicleAPI

接口方法名
partnerpayNotification

返回数据对象命名 XxxxResult

@aroundsm aroundsm closed this Aug 20, 2020
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

Successfully merging this pull request may close these issues.

3 participants