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