mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 21:23:44 +08:00
Merge branch 'support-google-oauth' into refactor-main
This commit is contained in:
@@ -189,7 +189,7 @@ func (user *User) FillUserByWeChatId() error {
|
||||
}
|
||||
|
||||
func (user *User) FillUserByGoogleId() error {
|
||||
if user.WeChatId == "" {
|
||||
if user.GoogleId == "" {
|
||||
return errors.New("Google id 为空!")
|
||||
}
|
||||
DB.Where(User{GoogleId: user.GoogleId}).First(user)
|
||||
|
||||
Reference in New Issue
Block a user