ソースを参照

小程序/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 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 2451
                 $yanglao = bcmul($pv, 0.5, 2);//给预下订单中的商品展示 养老金 显示作用
2452 2452
                 $cartInfo['list'][$_k]['pv'] = $pv;
2453 2453
                 $cartInfo['list'][$_k]['yanglao'] = $yanglao;