From b02077a42a9e1483911c824495b70712a8b92803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Sun, 18 Aug 2024 07:23:54 +0800 Subject: [PATCH] :bug: Fix a bug. --- service/friend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/friend.go b/service/friend.go index fc188927..a74450d0 100644 --- a/service/friend.go +++ b/service/friend.go @@ -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)