调整后台发起合同参数校验
This commit is contained in:
parent
d3a0bcfd93
commit
7373ee52e2
@ -139,9 +139,9 @@ class CompanyController extends BaseAdminController
|
||||
$params['party_a'] = $this->adminInfo['company_id'];
|
||||
}
|
||||
//判断是否是租赁合同
|
||||
//如果是租赁合同则必须传递租赁数量、租赁开始时间、租赁结束时间三个参数
|
||||
//如果是租赁合同则必须传递租赁数量参数
|
||||
if($params['contract_type'] == 29) {
|
||||
if(empty($params['num']) || empty($params['start_time']) || empty($params['end_time'])){
|
||||
if(empty($params['num'])){
|
||||
return $this->fail('缺少必要参数');
|
||||
}
|
||||
}
|
||||
|
@ -219,8 +219,6 @@ class ContractLogic extends BaseLogic
|
||||
'party_a' => $data['party_a'],
|
||||
'party_b' => $data['party_b'],
|
||||
'num' => $data['num'],
|
||||
'start_time' => strtotime($data['start_time']),
|
||||
'end_time' => strtotime($data['start_time']),
|
||||
'rent_type' => 1
|
||||
]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user