shish 3 years ago
parent
commit
ad010a64ee
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app-ghs/controllers/OrderController.php

+ 2 - 1
app-ghs/controllers/OrderController.php

@@ -798,8 +798,9 @@ class OrderController extends BaseController
                 $currentId = $currentProduct['productId'] ?? 0;
                 $systemInfo = $itemInfo[$currentId] ?? [];
                 $systemPrice = $systemInfo['price'] ?? 0;
+                $systemDiscountPrice = $systemInfo['discountPrice'] ?? 0;
                 $name = $systemInfo['name'] ?? '';
-                if (floatval($currentPrice) != floatval($systemPrice)) {
+                if (floatval($currentPrice) != floatval($systemPrice) && floatval($currentPrice) != floatval($systemDiscountPrice)) {
                     $diff[] = [
                         'name' => $name,
                         'price' => $systemPrice,