| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?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();
- }
- }
|