...
|
...
|
@@ -127,6 +127,7 @@ class Car extends Base |
|
|
"car_id" => $car_id,
|
|
|
"route_id" => $route_id,
|
|
|
"driver_id" => $driver['id'],
|
|
|
"type" => 1,
|
|
|
"order_status" => 1,
|
|
|
"createtime" => time()
|
|
|
]);
|
...
|
...
|
@@ -298,7 +299,7 @@ class Car extends Base |
|
|
*/
|
|
|
public function switching_driver()
|
|
|
{
|
|
|
$res = Db::name("driver")->where("user_id", $this->auth->id)->find();
|
|
|
$res = Db::name("driver")->where("user_id", 10)->find();
|
|
|
$car = Db::name("car")->where("driver_id", $res['id'])->find();
|
|
|
if ($car) {
|
|
|
//本月收入
|
...
|
...
|
|