patch
This commit is contained in:
parent
9e6275f99e
commit
dde21d9baf
@ -118,7 +118,7 @@ class ContractController extends BaseApiController
|
||||
try{
|
||||
$update_result = $contract->where('id', $contract['id'])->save($params);
|
||||
if(isset($params['cars_info']) && !empty($params['cars_info'])){
|
||||
$cars = json_decode($contract['cars_info'], true);
|
||||
$cars = json_decode($params['cars_info'], true);
|
||||
//更新本地车辆状态
|
||||
$vehicle_result = Vehicle::where('id','in',array_column($cars,'id'))->update(['status'=>1]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user