|
|
@@ -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);
|
|
|
|