|
@@ -53,7 +53,7 @@ class Order extends Api
|
|
|
|
|
|
$save = $OrderModel->save($order_arr);
|
|
|
$goods_id = explode(',',$data['goods_id']);
|
|
|
- if(count($goods_id) > 1){
|
|
|
+ if(count($goods_id) >= 1){
|
|
|
foreach ($goods_id as $k => $v){
|
|
|
if($data['type'] == 0){
|
|
|
$price = $Books->where('id',$v)->column('price');
|