正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -127,6 +127,7 @@ class Car extends Base | @@ -127,6 +127,7 @@ class Car extends Base | ||
| 127 | "car_id" => $car_id, | 127 | "car_id" => $car_id, |
| 128 | "route_id" => $route_id, | 128 | "route_id" => $route_id, |
| 129 | "driver_id" => $driver['id'], | 129 | "driver_id" => $driver['id'], |
| 130 | + "type" => 1, | ||
| 130 | "order_status" => 1, | 131 | "order_status" => 1, |
| 131 | "createtime" => time() | 132 | "createtime" => time() |
| 132 | ]); | 133 | ]); |
| @@ -298,7 +299,7 @@ class Car extends Base | @@ -298,7 +299,7 @@ class Car extends Base | ||
| 298 | */ | 299 | */ |
| 299 | public function switching_driver() | 300 | public function switching_driver() |
| 300 | { | 301 | { |
| 301 | - $res = Db::name("driver")->where("user_id", $this->auth->id)->find(); | 302 | + $res = Db::name("driver")->where("user_id", 10)->find(); |
| 302 | $car = Db::name("car")->where("driver_id", $res['id'])->find(); | 303 | $car = Db::name("car")->where("driver_id", $res['id'])->find(); |
| 303 | if ($car) { | 304 | if ($car) { |
| 304 | //本月收入 | 305 | //本月收入 |
-
请 注册 或 登录 后发表评论