diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index 8845358e..ce1869c2 100755 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -123,7 +123,7 @@ class IndexController extends BaseApiController //更新本地合同状态 Contract::where('id',$params['id'])->update(['signing_timer'=>2,'status'=>3]); //更新远程 - Vehicle::where('id','in',array_column($vehicle,'id'))->update(['status'=>3]); + Vehicle::where('id','in',array_column($vehicle,'id'))->update(['status'=>2]); $data = []; foreach($vehicle as $v){ $data[] = [ diff --git a/app/api/route/app.php b/app/api/route/app.php index d16b3e68..e7c2acbe 100755 --- a/app/api/route/app.php +++ b/app/api/route/app.php @@ -35,4 +35,4 @@ Route::rule('updateVehicleRent','Vehicle/updateVehicleRent','post'); Route::rule('signContract','Contract/signContract','post'); Route::rule('updateContract','Contract/updateContract','post'); -Route::rule('hetong/url','Hetong/url','get'); \ No newline at end of file +Route::rule('Hetong/url','Hetong/url','get'); \ No newline at end of file