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

物流单号

@@ -69,6 +69,9 @@ class Order extends Frontend @@ -69,6 +69,9 @@ class Order extends Frontend
69 foreach($data as $key1 => $vo){ 69 foreach($data as $key1 => $vo){
70 //获取店铺id 70 //获取店铺id
71 $goods = $goodsModel->findData(['g.id'=>$vo['goods_id']]); 71 $goods = $goodsModel->findData(['g.id'=>$vo['goods_id']]);
  72 + if(empty($goods)){
  73 + $this->error('未查询到该商品');
  74 + }
72 $data[$key1]['store_id'] = $goods['store_id']; 75 $data[$key1]['store_id'] = $goods['store_id'];
73 $store_ids[] = $goods['store_id']; 76 $store_ids[] = $goods['store_id'];
74 } 77 }