微信登录验证完成

This commit is contained in:
GeekMaster
2025-08-30 20:30:52 +08:00
parent c83c88ef27
commit 9254b8fafe
7 changed files with 655 additions and 326 deletions

View File

@@ -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")