正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -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']]); |
-
请 注册 或 登录 后发表评论