This commit is contained in:
mkm 2023-08-08 17:14:36 +08:00
parent ef381a53c8
commit 42fb50210c

View File

@ -120,7 +120,11 @@ class CompanyController extends BaseAdminController
public function initiate_contract()
{
$params = $this->request->param();
$params['party_a'] = $this->adminInfo['company_id'];
if(isset($params['party_a']) && $params['party_a']>0){
$params['party_a'] = $params['party_a'];
}else{
$params['party_a'] = $this->adminInfo['company_id'];
}
$params['type'] = 1;
$params['party_b']=$params['id'];
unset($params['id']);