修改微信登录 bug

This commit is contained in:
2025-06-11 17:31:17 +08:00
parent 1e94848f8d
commit 3f5d0d7b2b
3 changed files with 12 additions and 3 deletions

View File

@ -40,6 +40,7 @@ func init() {
AppId: g.Config().MustGet(ctx, "wechat.appId").String(),
AppSecret: g.Config().MustGet(ctx, "wechat.appSecret").String(),
TicketExpire: g.Config().MustGet(ctx, "wechat.ticketExpire").Int(),
Token: g.Config().MustGet(ctx, "wechat.token").String(),
}
go instance.autoRefreshToken(ctx)
@ -168,3 +169,7 @@ func (c *weChatClient) GetQrCode(ticket string) (imagePath string, err error) {
func (c *weChatClient) GetToken() string {
return c.Token
}
func (c *weChatClient) GetUserUnionId(openid string) (unionId string, err error) {
return
}