GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 修改access token自动刷新逻辑,避免循环递归调用 by hywr · Pull Request #2115 · binarywang/WxJava

Conversation

@hywr

@hywr hywr commented May 17, 2021

Copy link
Copy Markdown

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
sxc and others added 4 commits May 14, 2021 13:47
sxc
添加对话能力(原导购)相关结果 均通过单元测试
f14b88c
@hywr
Merge remote-tracking branch 'origin/develop' into develop
1c049e4
@hywr
Merge remote-tracking branch 'origin/develop' into develop
32695c7
@hywr
修改公众号、小程序、企业微信的access token自动刷新逻辑,用于避免当使用secrete误调用第三方平台专属接口的情况下出现循环递…
aec9387
…归调用甚至被微信限制qps。
@taneg

taneg commented May 17, 2021

Copy link
Copy Markdown

获取token报错不会进到重试

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hywr

hywr commented May 18, 2021

Copy link
Copy Markdown
Author

获取token报错不会进到重试

比如像 WxMaCodeService.getQrCode 这个方法,他要求第三方平台才可以调用,如果使用的是secrete获得的access token调用接口会报access token错误, 原先逻辑重新刷新 access toke再调用然后继续报access token错误,然后再刷新access token,一直循环...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@taneg

taneg commented May 18, 2021

Copy link
Copy Markdown

第三方平台获取token,是不会拿开放平台的secret去获取的,都是封装了的
image
image

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hywr

hywr commented May 18, 2021

Copy link
Copy Markdown
Author

第三方平台获取token,是不会拿开放平台的secret去获取的,都是封装了的
image
image

不可否认正常情况下能够正常工作,但如果使用小程序appId 和 secrete 去掉用第三方平台的接口,就会出现循环互递归

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@binarywang
binarywang merged commit 62a3931 into binarywang:develop May 20, 2021
@binarywang binarywang added this to the 4.1.0 milestone May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.1.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@hywr @taneg @binarywang
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.