success($result); } public function recharge() { $synced = RechargeService::syncPendingUsdtRechargeRecords(); RechargeService::syncRechargeStay(); // 代理 USDT 充值复用同一个外部定时任务,失败不影响会员充值同步结果。 try { $synced['agent'] = app(\App\Services\Agent\AgentRechargeService::class)->sync(); } catch (\Throwable $e) { report($e); } return $this->success($synced); } public function settle() { RoomService::noticeSettle(); return $this->success(); } public function five() { // IssueService::syncCountdownIssue(); // 提前20秒提醒 // IssueService::syncCloseIssue(); // 同步停止 // Log::error('✅ 获取到最新期号: ' . ($latestIssue ?? '无')); // 你的业务逻辑 // IssueService::getLatestIssue2(); // 获取最新的期号 // IssueService::syncCountdownIssue(); // 提前20秒提醒 // IssueService::syncCloseIssue(); // 同步停止 // Log::error('✅ 获取到最新期号: ' . ($latestIssue ?? '无')); // 你的业务逻辑 $res = IssueService::getLatestIssue(); // 获取最新的期号 return $this->success($res); } public function close() { IssueService::syncCountdownIssue(); // 提前20秒提醒 IssueService::syncCloseIssue(); // 同步停止 return $this->success(); } public function cd() { IssueService::syncCountdownIssue(); // return $this->success(); } public function exchange() { ConfigService::syncExchangeRate(); return $this->success(); } }