feat: 重构代码架构 + 新增报表/跟单/输赢统计功能

- 拆分 HomeController → TransactionController, ReportWebController, FollowPlanController
- 新增 Service 层: TransactionService, ReportService, FollowPlanService
- pk10.php JS 抽离为 4 个独立文件 (sound/race/bet/poll)
- 前台新增报表查询页面 (/report) + 跟单计划页面 (/follow-plan)
- 后台新增跟单计划管理 + 用户输赢明细统计
- 封盘状态显示倒计时 (x:xx)
- 音效仅在开奖弹窗打开时播放
- 路由按模块分组整理
- autoload 支持 App\Services 命名空间
This commit is contained in:
li
2026-03-27 18:41:06 +08:00
parent 48cfe4be04
commit 4a94fe36cf
87 changed files with 8681 additions and 646 deletions
+18
View File
@@ -99,6 +99,24 @@
</div>
</div>
<!-- 客服设置 -->
<div class="bg-white rounded-xl shadow-md p-6 mb-6">
<h3 class="text-lg font-semibold text-gray-800 mb-4 flex items-center">
<i class="fas fa-headset text-primary mr-2"></i>
客服设置
</h3>
<div class="space-y-4">
<div>
<label for="customer_service_url" class="block text-sm font-medium text-gray-700 mb-1">客服链接</label>
<input type="text" id="customer_service_url" name="customer_service_url"
value="<?= htmlspecialchars($settings['customer_service_url'] ?? '') ?>"
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"
placeholder="请输入客服链接,如 https://t.me/your_support">
<p class="text-xs text-gray-500 mt-1">用户充值时将跳转至此链接联系客服,支持 Telegram、WhatsApp 等链接</p>
</div>
</div>
</div>
<!-- 操作按钮 -->
<div class="flex justify-end gap-3 pt-4">
<button type="button" onclick="resetSettings()"