family 1 год назад
Родитель
Сommit
b93e5116a0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/common/repositories/store/order/StoreOrderRepository.php

+ 2 - 2
app/common/repositories/store/order/StoreOrderRepository.php

@@ -2365,9 +2365,9 @@ class StoreOrderRepository extends BaseRepository
2365 2365
                 // 商贸区
2366 2366
                 /** @var \app\common\repositories\merchant\MerchantRepository $merchant */
2367 2367
                 $merchant = app()->make(MerchantRepository::class);
2368
-                $merchantInfo = $merchant->get($store_product_datas['mer_id']);
2368
+                $tmpMerchantInfo = $merchant->get($store_product_datas['mer_id']);
2369 2369
                 // 1企业2个体3个人
2370
-                if ($merchantInfo && in_array($merchantInfo['type'], [2, 3])) {
2370
+                if ($tmpMerchantInfo && in_array($tmpMerchantInfo['type'], [2, 3])) {
2371 2371
                     $jf = $orderpri - round($store_product_datas['concession_pri'] * 0.3, 2) . ' + ' . round($store_product_datas['concession_pri'] * 0.3, 2);
2372 2372
                     $jd = $orderpri - round($store_product_datas['concession_pri'] * 0.35, 2) . ' + ' . round($store_product_datas['concession_pri'] * 0.35, 2);
2373 2373
                     if ($store_product_datas['concession_pri'] != null || $store_product_datas['concession_pri'] != 0) {