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:
@@ -34,7 +34,7 @@ class AgentController extends AdminBaseController {
|
||||
// 创建代理:先创建用户,再创建代理记录
|
||||
$userId = (int)($data['user_id'] ?? 0);
|
||||
if (!$userId) { $this->json(['status'=>'error','message'=>'User ID required']); return; }
|
||||
$code = strtoupper(substr(md5(uniqid()), 0, 8));
|
||||
$code = strtoupper(bin2hex(random_bytes(4)));
|
||||
$this->db->insert('agents', [
|
||||
'user_id' => $userId,
|
||||
'parent_id' => !empty($data['parent_id']) ? (int)$data['parent_id'] : null,
|
||||
|
||||
Reference in New Issue
Block a user