|
|
@@ -1001,7 +1001,12 @@ class ProductController extends BaseController
|
|
|
}
|
|
|
$ghsInfo = GhsClass::getById($ghsId, true, 'giveLevel');
|
|
|
$level = isset($ghsInfo->giveLevel) ? $ghsInfo->giveLevel : 1;
|
|
|
- $list = ProductClass::groupProductInfo([$product], $level);
|
|
|
+
|
|
|
+ $risePercent = $ghsInfo->risePercent ?? 0;
|
|
|
+ $riseRange = $ghsInfo->riseRange ?? 0;
|
|
|
+ $params = ['risePercent' => $risePercent, 'riseRange' => $riseRange];
|
|
|
+
|
|
|
+ $list = ProductClass::groupProductInfo([$product], $level, $params);
|
|
|
$product = current($list);
|
|
|
|
|
|
$mainId = $product['mainId'] ?? 0;
|
|
|
@@ -1139,4 +1144,4 @@ class ProductController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
+}
|