微信公众号token和小程序token冲突吗?

小程序 文章 2022-01-14 16:40 7 0 全屏看文

微信公众号token和小程序token冲突吗?Do WeChat Official Account Tokens and Mini Program Tokens Conflict?

微信公众号token和小程序token冲突吗?

同一主体下,微信公众号获取token后,小程序同样获取token,由于调用的是同一接口,后获取的token会将前面获取的token在五分钟内置为失效,例如:先获取微信公众号token,在获取小程序token,五分钟后微信公众号token就失效了,有没有办法解决

The same official account official, after the WeChat official account gets token, the small program also gets token. Because the same interface is called, the token obtained after the acquisition will be built in five minutes to invalidation. For example, first get the WeChat official account token, get the token of the small program, and the WeChat public number token will be invalid after five minutes, and there is no way to solve it. Is there any solution to the problem? Token

回答:

来一间:

你可以让后端拆分两个token,微信公众号 用一个  小程序 用一个

微喵网络:

公众号和小程序用同一个接口获取token?

拾忆:

没遇到过这个情况

-EOF-