fix: google id

This commit is contained in:
ckt1031
2023-07-25 12:14:41 +08:00
parent c144c64fff
commit 438daea433
2 changed files with 4 additions and 20 deletions

View File

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