...
|
...
|
@@ -290,6 +290,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_ids)->select();
|
|
|
// $data = json_decode($data,true);
|
|
|
dump($data);exit;
|
|
|
Db::startTrans();
|
|
|
if(!$data) {
|
|
|
// 如果不在购物车则为立即购买
|
...
|
...
|
@@ -312,7 +313,6 @@ class Order extends Frontend |
|
|
foreach($data as $key1 => $vo){
|
|
|
//获取店铺id
|
|
|
$goods = $goodsModel->findData(['g.id'=>$vo['goods_id']]);
|
|
|
dump($goods);exit;
|
|
|
$data[$key1]['store_id'] = $goods['store_id'];
|
|
|
$store_ids[] = $goods['store_id'];
|
|
|
}
|
...
|
...
|
|