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 的问题 #27

Open
tangchi695 opened this issue Sep 28, 2021 · 0 comments
Open

一个关于access_token 的问题 #27

tangchi695 opened this issue Sep 28, 2021 · 0 comments

Comments

@tangchi695
Copy link

async getToken() { const { appId, appSecret, } = this.app.config.mp; const url =${tokenUri}?grant_type=client_credential&appid=${appId}&secret=${appSecret}; const res = await this.ctx.curl(url, { dataType: 'json', }); return res.data; }
直接这么粗暴的吗,每次获取直接刷新,不做持久化?调用上限满了怎么搞?

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

1 participant