1
0
forked from lxh/go-wxhelper

Merge pull request '🐛 Fix a bug.' (#96) from hotfix into main

Reviewed-on: lxh/go-wxhelper#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)