正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -1504,6 +1504,9 @@ class Car extends Base | @@ -1504,6 +1504,9 @@ class Car extends Base | ||
1504 | $car = Db::name("car")->where("id", $order['car_id'])->find(); | 1504 | $car = Db::name("car")->where("id", $order['car_id'])->find(); |
1505 | $seat = Db::name("seat")->where("id", $car['seat_id'])->find(); | 1505 | $seat = Db::name("seat")->where("id", $car['seat_id'])->find(); |
1506 | $seat_data = json_decode($seat['seat'], true); | 1506 | $seat_data = json_decode($seat['seat'], true); |
1507 | + if($order_id['type']!=1){ | ||
1508 | + $this->error("城际包车无座位信息"); | ||
1509 | + } | ||
1507 | if($seat_data){ | 1510 | if($seat_data){ |
1508 | $seat_no = array_filter($seat_data, function ($value) { | 1511 | $seat_no = array_filter($seat_data, function ($value) { |
1509 | return !empty($value); | 1512 | return !empty($value); |
-
请 注册 或 登录 后发表评论