From 51d4b4c9a21f7a9b3c4420c3078fe3fc2483f489 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Wed, 6 Sep 2023 14:27:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/contract/ContractLogic.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/common/logic/contract/ContractLogic.php b/app/common/logic/contract/ContractLogic.php index c64a1d8fd..6d05154c7 100644 --- a/app/common/logic/contract/ContractLogic.php +++ b/app/common/logic/contract/ContractLogic.php @@ -204,10 +204,10 @@ class ContractLogic extends BaseLogic public static function Initiate_contract($data) { // 校验当前甲方公司是否签过合同 - $partyAModel = Contract::where(['party_b' => $data['party_a']])->find(); - if (empty($partyAModel)) { - return self::setError('当前甲方暂无和平台或上级公司签约,请先进行签约'); - } +// $partyAModel = Contract::where(['party_b' => $data['party_a']])->find(); +// if (empty($partyAModel)) { +// return self::setError('当前甲方暂无和平台或上级公司签约,请先进行签约'); +// } $model = Contract::where(['party_b' => $data['party_b'],'contract_type'=>$data['contract_type']])->find(); if (empty($model)) { $model = new Contract(); @@ -258,8 +258,8 @@ class ContractLogic extends BaseLogic $data = [ 'name' => $name . '的合同', 'signatories' => [ - ['fullName' => $name, 'identityType' => 12, 'identityCard' => $result['organization_code'], 'email' => $result['master_email'], 'noNeedVerify' => 1, 'signLevel' => 1], - ['fullName' => $result['contract']['party_a_info']['company_name'], 'identityType' => 12, 'identityCard' => $result['contract']['party_a_info']['organization_code'], 'email' => $result['contract']['party_a_info']['master_email'], 'noNeedVerify' => 1, 'signLevel' => 1] + ['fullName' => $name, 'identityType' => 12, 'identityCard' => $result['organization_code'], 'email' => $result['master_email'], 'noNeedVerify' => 1, 'authLevel'=>[11],'signLevel' => 1], + ['fullName' => $result['contract']['party_a_info']['company_name'], 'identityType' => 12, 'identityCard' => $result['contract']['party_a_info']['organization_code'], 'email' => $result['contract']['party_a_info']['master_email'], 'noNeedVerify' => 1, 'authLevel'=>[11],'signLevel' => 1] ], 'url' => $result['contract']['file'] ];