🎨 优化bilibili

This commit is contained in:
源文雨
2022-10-07 12:21:20 +08:00
parent 519ae62760
commit 9cb54a34da
18 changed files with 467 additions and 897 deletions

View File

@@ -83,7 +83,7 @@ func (sdb *scoredb) InsertOrUpdateScoreByUID(uid int64, score int) (err error) {
}
} else {
err = db.Model(&scoretable{}).Where("uid = ? ", uid).Update(
map[string]interface{}{
map[string]any{
"score": score,
}).Error
}
@@ -111,7 +111,7 @@ func (sdb *scoredb) InsertOrUpdateSignInCountByUID(uid int64, count int) (err er
}
} else {
err = db.Model(&signintable{}).Where("uid = ? ", uid).Update(
map[string]interface{}{
map[string]any{
"count": count,
}).Error
}