shish 4 سال پیش
والد
کامیت
218ea92a59
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      app-ghs/controllers/ConsoleController.php

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

@@ -90,9 +90,10 @@ class ConsoleController extends BaseController
         $cacheKey = 'close_book_' . $this->shopAdminId;
         $hasClose = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
         $showBook = 1;
-        $shopAddTime = $this->shop->addTime;
-        $shopTime = strtotime($shopAddTime) + 90 * 24 * 60 * 60;
-        if (!empty($hasClose) || $shopTime < time()) {
+        //$shopAddTime = $this->shop->addTime;
+        //$shopTime = strtotime($shopAddTime) + 90 * 24 * 60 * 60;
+        //if (!empty($hasClose) || $shopTime < time()) {
+        if (!empty($hasClose)) {
             $showBook = 0;
         }