Compare commits

...

2 Commits

Author SHA1 Message Date
e8fd8d5f5c 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
2024-08-18 07:28:53 +08:00
b02077a42a 🐛 Fix a bug. 2024-08-18 07:23:54 +08:00

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)