Merge pull request '🐛 Fix a bug.' (#96) from hotfix into main
All checks were successful
BuildImage / build-image (push) Successful in 1m35s
All checks were successful
BuildImage / build-image (push) Successful in 1m35s
Reviewed-on: #96
This commit is contained in:
commit
e8fd8d5f5c
@ -168,7 +168,7 @@ func UpdateAiUsedToday(wxId string) {
|
|||||||
// ClearAiUsedToday
|
// ClearAiUsedToday
|
||||||
// @description: 清空AI今日使用次数
|
// @description: 清空AI今日使用次数
|
||||||
func ClearAiUsedToday() {
|
func ClearAiUsedToday() {
|
||||||
err := client.MySQL.Model(&entity.Friend{}).
|
err := client.MySQL.Model(&entity.Friend{}).Where("is_ok = 1").
|
||||||
Update("`ai_used_today`", 0).Error
|
Update("`ai_used_today`", 0).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("清空AI今日使用次数失败, 错误信息: %v", err)
|
log.Printf("清空AI今日使用次数失败, 错误信息: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user