mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-06 15:20:22 +00:00
⚡️ 🎨 优化bilibili
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user