shish 2 gadi atpakaļ
vecāks
revīzija
ef7e513786
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      app-hd/controllers/ClearController.php

+ 4 - 0
app-hd/controllers/ClearController.php

@@ -136,6 +136,10 @@ class ClearController extends BaseController
         $remainSecond = bcsub($remainSecond, 100);
         $remainSecond = bcsub($remainSecond, 100);
         $remainSecond = $remainSecond > 0 ? $remainSecond : 0;
         $remainSecond = $remainSecond > 0 ? $remainSecond : 0;
         $clear['remainSecond'] = $remainSecond;
         $clear['remainSecond'] = $remainSecond;
+
+        $ghsShopId = $clear->ghsShopId ?? 0;
+        $ghsShopInfo = ShopClass::getById($ghsShopId, true);
+        $clear['hasRenew'] = $ghsShopInfo->hasRenew ?? 0;
         util::success($clear);
         util::success($clear);
     }
     }