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