作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

物流单号

@@ -56,7 +56,7 @@ class Order extends Frontend @@ -56,7 +56,7 @@ class Order extends Frontend
56 }*/ 56 }*/
57 $car_model = new \app\index\model\Car(); 57 $car_model = new \app\index\model\Car();
58 $data = $car_model->field('id,store_id,goods_id,number')->whereIn('id',$car_data)->select(); 58 $data = $car_model->field('id,store_id,goods_id,number')->whereIn('id',$car_data)->select();
59 - dump($data);exit; 59 + dump($data);
60 if(!$data) { 60 if(!$data) {
61 // 如果不在购物车则为立即购买 61 // 如果不在购物车则为立即购买
62 $data[] = [ 62 $data[] = [
@@ -67,7 +67,7 @@ class Order extends Frontend @@ -67,7 +67,7 @@ class Order extends Frontend
67 } 67 }
68 $goodsModel = new \app\index\model\Goods(); 68 $goodsModel = new \app\index\model\Goods();
69 $store_ids = []; 69 $store_ids = [];
70 - dump($data); 70 + dump($data);exit;
71 foreach($data as $key1 => $vo){ 71 foreach($data as $key1 => $vo){
72 //获取店铺id 72 //获取店铺id
73 $goods = $goodsModel->findData(['g.id'=>$vo['goods_id']]); 73 $goods = $goodsModel->findData(['g.id'=>$vo['goods_id']]);