- 拆分 HomeController → TransactionController, ReportWebController, FollowPlanController - 新增 Service 层: TransactionService, ReportService, FollowPlanService - pk10.php JS 抽离为 4 个独立文件 (sound/race/bet/poll) - 前台新增报表查询页面 (/report) + 跟单计划页面 (/follow-plan) - 后台新增跟单计划管理 + 用户输赢明细统计 - 封盘状态显示倒计时 (x:xx) - 音效仅在开奖弹窗打开时播放 - 路由按模块分组整理 - autoload 支持 App\Services 命名空间
19 lines
785 B
SQL
19 lines
785 B
SQL
-- 充提申请表
|
|
CREATE TABLE IF NOT EXISTS `fund_requests` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`type` enum('deposit','withdraw') NOT NULL COMMENT '充值/提现',
|
|
`amount` decimal(15,2) NOT NULL,
|
|
`status` enum('pending','approved','rejected') DEFAULT 'pending',
|
|
`remark` text COMMENT '用户备注',
|
|
`admin_remark` text COMMENT '管理员备注',
|
|
`operator_id` int(11) DEFAULT NULL COMMENT '审核人ID',
|
|
`created_at` datetime DEFAULT CURRENT_TIMESTAMP,
|
|
`processed_at` datetime DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `idx_user_id` (`user_id`),
|
|
KEY `idx_status` (`status`),
|
|
KEY `idx_type_status` (`type`, `status`),
|
|
KEY `idx_created_at` (`created_at`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='充提申请记录';
|