update:生成合同时,校验甲方公司是否有过签约
This commit is contained in:
parent
2365a4ce5c
commit
96d2cd23be
@ -151,7 +151,7 @@ class CompanyController extends BaseAdminController
|
||||
$params['party_b'] = $params['id'];
|
||||
unset($params['id']);
|
||||
$result = ContractLogic::initiate_contract($params);
|
||||
if ($result['code'] == 1) {
|
||||
if (!empty($result) && $result['code'] == 1) {
|
||||
return $this->success($result['msg'], $result['data']);
|
||||
}
|
||||
return $this->fail(ContractLogic::getError());
|
||||
|
Loading…
x
Reference in New Issue
Block a user