Преглед изворни кода

小程序/APP-下单检测接口,复购区养老金预估错误问题

sunxbiao пре 1 година
родитељ
комит
944768669d
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      app/common/repositories/store/order/StoreOrderRepository.php

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

@@ -2444,10 +2444,10 @@ class StoreOrderRepository extends BaseRepository
2444
 
2444
 
2445
                 }
2445
                 }
2446
             } else if ($store_product_datas['mer_id'] == 491) {
2446
             } else if ($store_product_datas['mer_id'] == 491) {
2447
-//                $productSku = Db::name('store_product_attr_value')->where('product_id', $good_id)->order('price asc')->find();
2448
-//                $pv = $productSku['plate_mer_profit']??0.00;
2447
+                $productSku = Db::name('store_product_attr_value')->where('product_id', $store_product_datas['product_id'])->order('price asc')->find();
2448
+                $pv = $productSku['plate_mer_profit'] ?? 0.00;
2449
                 //复购区
2449
                 //复购区
2450
-                $pv = bcmul($orderpri, 0.3, 2);
2450
+                // $pv = bcmul($orderpri, 0.3, 2);
2451
                 $yanglao = bcmul($pv, 0.5, 2);//给预下订单中的商品展示 养老金 显示作用
2451
                 $yanglao = bcmul($pv, 0.5, 2);//给预下订单中的商品展示 养老金 显示作用
2452
                 $cartInfo['list'][$_k]['pv'] = $pv;
2452
                 $cartInfo['list'][$_k]['pv'] = $pv;
2453
                 $cartInfo['list'][$_k]['yanglao'] = $yanglao;
2453
                 $cartInfo['list'][$_k]['yanglao'] = $yanglao;