mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-04-24 20:14:26 +08:00
微信登录验证完成
This commit is contained in:
@@ -51,6 +51,14 @@ func (s *WxLoginService) UpdateConfig(config types.WxLoginConfig) {
|
||||
s.config = config
|
||||
}
|
||||
|
||||
func (s *WxLoginService) GetConfig() types.WxLoginConfig {
|
||||
return s.config
|
||||
}
|
||||
|
||||
func (s *WxLoginService) SetConfig(config types.WxLoginConfig) {
|
||||
s.config = config
|
||||
}
|
||||
|
||||
func (s *WxLoginService) GetLoginQrCodeUrl(state string) (string, error) {
|
||||
if s.config.ApiKey == "" {
|
||||
return "", errors.New("无效的 API Key")
|
||||
|
||||
Reference in New Issue
Block a user