seven 2 주 전
부모
커밋
673301b35c
2개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. 10 2
      app/Http/Controllers/admin/Sync.php
  2. 1 0
      routes/admin.php

+ 10 - 2
app/Http/Controllers/admin/Sync.php

@@ -34,9 +34,9 @@ class Sync extends Controller
 
     public function five()
     {
-        IssueService::syncCountdownIssue(); // 提前20秒提醒
+        // IssueService::syncCountdownIssue(); // 提前20秒提醒
 
-        IssueService::syncCloseIssue(); // 同步停止
+        // IssueService::syncCloseIssue(); // 同步停止
         // Log::error('✅ 获取到最新期号: ' . ($latestIssue ?? '无'));
 
         // 你的业务逻辑
@@ -44,6 +44,14 @@ class Sync extends Controller
         return $this->success();
     }
 
+    public function close()
+    {
+        IssueService::syncCountdownIssue(); // 提前20秒提醒
+
+        IssueService::syncCloseIssue(); // 同步停止
+        return $this->success();
+    }
+
     public function cd()
     {
         IssueService::syncCountdownIssue(); // 

+ 1 - 0
routes/admin.php

@@ -31,6 +31,7 @@ Route::prefix('/sync')->group(function () {
     Route::get('/recharge', [Sync::class, 'recharge']);
     Route::get('/settle', [Sync::class, 'settle']);
     Route::get('/five', [Sync::class, 'five']);
+    Route::get('/close', [Sync::class, 'close']);
     Route::get('/cd', [Sync::class, 'cd']);
     Route::get('/exchange', [Sync::class, 'exchange']);
 });