From 36708df6fa148cbad848358cb325d0faaa75450f Mon Sep 17 00:00:00 2001 From: hdm Date: Sat, 6 Aug 2022 00:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=97=B6=E9=97=B4=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=94=99=E8=AF=AFbug=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/customer/view/index/sea.html | 2 +- app/project/controller/Index.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/customer/view/index/sea.html b/app/customer/view/index/sea.html index dd1a5b3..940f09d 100644 --- a/app/customer/view/index/sea.html +++ b/app/customer/view/index/sea.html @@ -138,7 +138,7 @@ obj.del(); } } - tool.post("/customer/index/distribute", {id: data.id,uid:ids,did:dids}, callback); + tool.post("/customer/api/distribute", {id: data.id,uid:ids,did:dids}, callback); layer.close(index); }); } diff --git a/app/project/controller/Index.php b/app/project/controller/Index.php index 1d57893..80bbc8e 100644 --- a/app/project/controller/Index.php +++ b/app/project/controller/Index.php @@ -225,11 +225,13 @@ class Index extends BaseController if (request()->isPost()) { if ($this->uid == $detail['admin_id'] || $this->uid == $detail['director_uid']) { if (isset($param['start_time'])) { + $param['start_time'] = strtotime(urldecode($param['start_time'])); if ($param['start_time'] >= $detail['end_time']) { return to_assign(1, '开始时间不能大于计划结束时间'); } } if (isset($param['end_time'])) { + $param['end_time'] = strtotime(urldecode($param['end_time'])); if ($param['end_time'] <= $detail['start_time']) { return to_assign(1, '计划结束时间不能小于开始时间'); }