| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?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;
- use App\Services\ConfigService;
- use Google\Service\ServiceManagement\ConfigSource;
- 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();
- }
- public function exchange()
- {
- ConfigService::syncExchangeRate();
- return $this->success();
- }
- }
|