feat: 每日观看上限改为 3 次,消息改用变量

This commit is contained in:
2026-04-02 18:46:20 +08:00
parent b0b77640f6
commit 3aa2402808
2 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ class EarnController extends Controller
/** /**
* @var int 每日观看最大次数限制 * @var int 每日观看最大次数限制
*/ */
private int $maxDailyLimit = 10; private int $maxDailyLimit = 3;
/** /**
* @var int 每次领奖后至少需要的冷却时间(秒) * @var int 每次领奖后至少需要的冷却时间(秒)
@@ -61,7 +61,7 @@ class EarnController extends Controller
if ($todayCount >= $this->maxDailyLimit) { if ($todayCount >= $this->maxDailyLimit) {
return response()->json([ return response()->json([
'success' => false, 'success' => false,
'message' => '今日视频收益次数已达上限(每天最多10次),请明天再来。', 'message' => "今日视频收益次数已达上限(每天最多{$this->maxDailyLimit}次),请明天再来。",
]); ]);
} }

View File

@@ -30,7 +30,7 @@
完整观看视频后,即可获得 <span style="color: #d97706;">5000 金币</span> <span style="color: #16a34a;">500 经验</span> 奖励!<br> 完整观看视频后,即可获得 <span style="color: #d97706;">5000 金币</span> <span style="color: #16a34a;">500 经验</span> 奖励!<br>
</div> </div>
<div style="font-size: 12px; color: #6b7280;"> <div style="font-size: 12px; color: #6b7280;">
中途关闭视作放弃,不会扣除观影次数。每日最多获取 10 次。 中途关闭视作放弃,不会扣除观影次数。每日最多获取 3 次。
</div> </div>
</div> </div>