Merge branch 'support-google-oauth' into refactor-main

This commit is contained in:
ckt1031
2023-07-25 12:22:04 +08:00
2 changed files with 4 additions and 20 deletions

View File

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