作者 郭文星

123

@@ -435,8 +435,11 @@ class Car extends Base @@ -435,8 +435,11 @@ class Car extends Base
435 if ($order['order_status'] == 1) { 435 if ($order['order_status'] == 1) {
436 $order = Db::name("order")->where("id", $id)->update(['order_status' => 2]); 436 $order = Db::name("order")->where("id", $id)->update(['order_status' => 2]);
437 return $this->success("请求成功"); 437 return $this->success("请求成功");
438 - } else { 438 + } else if ($order['order_status'] == 1) {
  439 + return $this->error("请求失败,已开始接送用户");
  440 + }else{
439 return $this->error("请求失败"); 441 return $this->error("请求失败");
  442 +
440 } 443 }
441 } 444 }
442 445