deploy: auto commit repo-root changes 2026-07-05 12:03:49
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user