mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-17 13:43:42 +08:00
fix: google id
This commit is contained in:
@@ -180,7 +180,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