修改签约回调
This commit is contained in:
parent
4b11877487
commit
bc7efbb6d4
@ -32,7 +32,8 @@ class IndexController extends BaseApiController
|
||||
{
|
||||
|
||||
|
||||
public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl','notifyProperty','notifyAuthentication'];
|
||||
public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl','notifyProperty','notifyAuthentication','test'];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
@ -121,7 +122,7 @@ class IndexController extends BaseApiController
|
||||
$company = Db::name('company')->where('id',$vehicleRent['party_b'])->find();
|
||||
//通知物流系统
|
||||
if($vehicleRent && $company){
|
||||
$result = curl_post('http://logistics.lihaink.cn/api/updateRentRecord', [], [
|
||||
$result = curl_post('http://logistics.lihaink.cn/api/vehicleRent', [], [
|
||||
'contract_id' => $a['id'],
|
||||
'car_id' => $vehicleRent['car_ids'],
|
||||
'company_id' => $company['id'],
|
||||
|
@ -28,7 +28,10 @@ class VehicleLogic extends BaseLogic
|
||||
Db::startTrans();
|
||||
try {
|
||||
$contract = Contract::create([
|
||||
'admin_id' => 0,
|
||||
'company_id' =>0,
|
||||
'contract_type' => 29,
|
||||
'file' => '',
|
||||
'contract_no' => time(),
|
||||
'create_time' => time(),
|
||||
'update_time' => time(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user