diff --git a/app/adminapi/controller/CompanyController.php b/app/adminapi/controller/CompanyController.php index 0f250b7f1..5db633655 100644 --- a/app/adminapi/controller/CompanyController.php +++ b/app/adminapi/controller/CompanyController.php @@ -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('缺少必要参数'); } } diff --git a/app/common/logic/contract/ContractLogic.php b/app/common/logic/contract/ContractLogic.php index f84f58f40..76489487d 100644 --- a/app/common/logic/contract/ContractLogic.php +++ b/app/common/logic/contract/ContractLogic.php @@ -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 ]); }