Merge pull request '🐛 Fix a bug.' (#96) from hotfix into main
All checks were successful
BuildImage / build-image (push) Successful in 1m35s

Reviewed-on: #96
This commit is contained in:
李寻欢 2024-08-18 07:28:53 +08:00
commit e8fd8d5f5c

View File

@ -168,7 +168,7 @@ func UpdateAiUsedToday(wxId string) {
// ClearAiUsedToday
// @description: 清空AI今日使用次数
func ClearAiUsedToday() {
err := client.MySQL.Model(&entity.Friend{}).
err := client.MySQL.Model(&entity.Friend{}).Where("is_ok = 1").
Update("`ai_used_today`", 0).Error
if err != nil {
log.Printf("清空AI今日使用次数失败, 错误信息: %v", err)