tmp #99

Merged
李寻欢 merged 51 commits from tmp into hotfix 2024-08-20 16:45:07 +08:00
Showing only changes of commit e8fd8d5f5c - Show all commits

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)