q
This commit is contained in:
parent
c8c3118ecc
commit
6c0505575d
@ -126,13 +126,6 @@ class VehicleLogic extends BaseLogic
|
||||
if(!$record){
|
||||
return ['code'=>0,'msg'=>'数据不存在'];
|
||||
}
|
||||
$res = curl_post('http://www.task.local/v1/notify_property',[
|
||||
'token:'.self::getTaskToken(),
|
||||
'authority:worker-task.lihaink.cn',
|
||||
],[
|
||||
'company_id'=>$record['party_b'],
|
||||
'object_id' => $record['car_ids']
|
||||
]);
|
||||
VehicleRentRecord::startTrans();
|
||||
try {
|
||||
if($record['rent_type'] == 1){
|
||||
@ -197,8 +190,8 @@ class VehicleLogic extends BaseLogic
|
||||
'token:'.self::getTaskToken(),
|
||||
'authority:worker-task.lihaink.cn',
|
||||
],[
|
||||
'company_id'=>$record['part_b'],
|
||||
'object_id' => explode(',',$record['car_ids'])
|
||||
'company_id'=> $record['part_b'],
|
||||
'object_id' => $record['car_ids']
|
||||
]);
|
||||
Log::write($res);
|
||||
VehicleRentRecord::where('id',$record['id'])->update(['status'=>2,'update_time'=>time()]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user