We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
系统中有调用多个小程序需求,能放开自定义,或者 key里面加上 appid
func (cli *Client) tokenCacheKey() string { return fmt.Sprintf("weapp.access.token.%s", cli.appid) }
The text was updated successfully, but these errors were encountered:
这个应该可以
package main import ( "github.com/medivhzhan/weapp/v3" ) func main() { tokenGetter := func() (token string, expireIn uint) { expireIn = 1000 token = "your-custom-token" return token, expireIn } sdk := weapp.NewClient( "your-appid", "your-secret", weapp.WithAccessTokenSetter(tokenGetter), ) }
Sorry, something went wrong.
v3.6.4 版本也已经把appid加入缓存key
好的,感谢!
No branches or pull requests
系统中有调用多个小程序需求,能放开自定义,或者 key里面加上 appid
The text was updated successfully, but these errors were encountered: