This commit is contained in:
shaoyongjun 2024-08-18 20:42:44 +08:00
parent 1a938f83c3
commit 1293670a81

View File

@ -48,7 +48,7 @@ func (thirdUserTokenRepositoryImpl) FindByUid(ctx context.Context, uid uint64) *
}
var model GLoginToken
sqlErr := db.Model(&model).Where("uid=? and platform=web", uid).First(&model).Error
sqlErr := db.Model(&model).Where("uid=? and platform='web'", uid).First(&model).Error
if sqlErr != nil {
return nil