Browse Source

关闭限制

shish 2 years ago
parent
commit
7493ff83e4

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

@@ -147,10 +147,7 @@ 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;
+        $clear['hasRenew'] = 1;
         util::success($clear);
     }
 

+ 1 - 1
app-hd/controllers/PurchaseController.php

@@ -743,7 +743,7 @@ class PurchaseController extends BaseController
         $ghsShopId = $ghsInfo->shopId ?? 0;
         $ghsShopInfo = ShopClass::getById($ghsShopId, true);
         $info['ghsMobile'] = $ghsShopInfo->telephone ?? '';
-        $info['hasRenew'] = $ghsShopInfo->hasRenew ?? 0;
+        $info['hasRenew'] = 1;
         util::success($info);
     }