shish 1 mēnesi atpakaļ
vecāks
revīzija
40b606f2e4
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      app-hd/controllers/ProductController.php

+ 1 - 2
app-hd/controllers/ProductController.php

@@ -999,13 +999,12 @@ class ProductController extends BaseController
         if (empty($product)) {
             util::fail('没有花材信息');
         }
-        $ghsInfo = GhsClass::getById($ghsId, true, 'giveLevel');
+        $ghsInfo = GhsClass::getById($ghsId, true, 'id,giveLevel,risePercent,riseRange');
         $level = isset($ghsInfo->giveLevel) ? $ghsInfo->giveLevel : 1;
 
         $risePercent = $ghsInfo->risePercent ?? 0;
         $riseRange = $ghsInfo->riseRange ?? 0;
         $params = ['risePercent' => $risePercent, 'riseRange' => $riseRange];
-
         $list = ProductClass::groupProductInfo([$product], $level, $params);
         $product = current($list);