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, '计划结束时间不能小于开始时间'); }