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