deploy: auto commit repo-root changes 2026-07-05 12:03:49

This commit is contained in:
hajimi
2026-07-05 12:03:49 +08:00
parent 074aa7ab3e
commit 1954948445
107 changed files with 161 additions and 125 deletions
+2 -8
View File
@@ -18,6 +18,7 @@ namespace app\common\model\user;
use app\common\enum\user\UserEnum;
use app\common\model\BaseModel;
use app\common\service\ai\AiQuotaService;
use app\common\service\FileService;
use think\model\concern\SoftDelete;
@@ -204,14 +205,7 @@ class User extends BaseModel
$isVip = false;
}
// 每日免费次数重置
$today = date('Y-m-d');
if ($this->getData('ai_free_date') !== $today) {
$this->save(['ai_free_count' => 3, 'ai_free_date' => $today]);
$freeCount = 3;
} else {
$freeCount = (int) $this->getData('ai_free_count');
}
$freeCount = AiQuotaService::resetDailyIfNeeded($this);
// 获取等级卡片背景图
$cardImage = '';