| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | 
							- <?php
 
- namespace App\Http\Controllers\admin;
 
- use App\Http\Controllers\Controller;
 
- use App\Models\Collect;
 
- use App\Services\CollectService;
 
- use App\Services\RechargeService;
 
- use App\Services\RoomService;
 
- use App\Services\IssueService;
 
- class Sync extends Controller 
 
- {
 
-     public function collect()
 
-     {
 
-         CollectService::syncCollectStay();
 
-         return $this->success();
 
-     }
 
-     public function recharge()
 
-     {
 
-         RechargeService::syncRechargeStay();
 
-         return $this->success();
 
-     }
 
-     public function settle()
 
-     {
 
-         RoomService::noticeSettle();
 
-         return $this->success();
 
-     }
 
-     public function five()
 
-     {
 
-         IssueService::syncCountdownIssue(); // 提前20秒提醒
 
-         IssueService::syncCloseIssue(); // 同步停止
 
-         // Log::error('✅ 获取到最新期号: ' . ($latestIssue ?? '无'));
 
-         // 你的业务逻辑
 
-         IssueService::getLatestIssue(); // 获取最新的期号
 
-         return $this->success();
 
-     }
 
-     public function cd()
 
-     {
 
-         IssueService::syncCountdownIssue(); // 
 
-         return $this->success();
 
-     }
 
- }
 
 
  |