From 7373ee52e2a9948040d1c96debfe101867e7e714 Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Thu, 24 Aug 2023 16:32:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=90=8E=E5=8F=B0=E5=8F=91?= =?UTF-8?q?=E8=B5=B7=E5=90=88=E5=90=8C=E5=8F=82=E6=95=B0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/adminapi/controller/CompanyController.php | 4 ++-- app/common/logic/contract/ContractLogic.php | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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 ]); }