shish 2 vuotta sitten
vanhempi
commit
ef7e513786
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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 = $remainSecond > 0 ? $remainSecond : 0;
         $clear['remainSecond'] = $remainSecond;
+
+        $ghsShopId = $clear->ghsShopId ?? 0;
+        $ghsShopInfo = ShopClass::getById($ghsShopId, true);
+        $clear['hasRenew'] = $ghsShopInfo->hasRenew ?? 0;
         util::success($clear);
     }