shish 11 месяцев назад
Родитель
Сommit
1a97fad655
1 измененных файлов с 8 добавлено и 6 удалено
  1. 8 6
      app-hd/controllers/OrderController.php

+ 8 - 6
app-hd/controllers/OrderController.php

@@ -645,12 +645,14 @@ class OrderController extends BaseController
                                 $name = $systemInfo['name'] ?? '';
                                 $hsData = GoodsClass::getFinalPrice($systemInfo, $shop, $custom, $params);
                                 $systemPrice = $hsData['price'] ?? 0;
-                                if (floatval($currentPrice) != floatval($systemPrice)) {
-                                    $diff[] = [
-                                        'name' => $name,
-                                        'price' => $systemPrice,
-                                        'kdPrice' => $currentPrice,
-                                    ];
+                                if ($systemInfo['priceType'] == 1) {
+                                    if (floatval($currentPrice) != floatval($systemPrice)) {
+                                        $diff[] = [
+                                            'name' => $name,
+                                            'price' => $systemPrice,
+                                            'kdPrice' => $currentPrice,
+                                        ];
+                                    }
                                 }
                             }
                         }