Jelajahi Sumber

提前25天

shish 6 bulan lalu
induk
melakukan
7ea5f0af5f
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      app-ghs/controllers/ConsoleController.php

+ 3 - 3
app-ghs/controllers/ConsoleController.php

@@ -151,15 +151,15 @@ class ConsoleController extends BaseController
         $notice = [];
         $shop = $this->shop;
         if (!empty($shop)) {
-            //到期前30天提醒
+            //到期前25天提醒
             $deadline = $shop->deadline;
             $currentTime = time();
             $deadTime = strtotime($deadline);
             $remainingSeconds = $deadTime - $currentTime;
             $remainingDays = ceil($remainingSeconds / 86400);
             
-            // 30天 = 2592000秒
-            if ($remainingSeconds <= 2592000) {
+            // 25天 = 2160000秒
+            if ($remainingSeconds <= 2160000) {
                 if ($remainingSeconds <= 0) {
                     $notice[] = ['title' => '系统已到期', 'action' => '查看', 'page' => '/admin/shop/renew'];
                 } else {