From 4123774a95744bed8830d9107f13abeb0635245a Mon Sep 17 00:00:00 2001 From: "elf@home" <360197197@qq.com> Date: Mon, 16 Dec 2019 23:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E6=94=BE=E8=BF=81=E7=A7=BB=E6=8E=A8?= =?UTF-8?q?=E5=B9=BF=E8=B4=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/PromoteController.class.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index 08dfda390..ef625fcf8 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -1893,13 +1893,15 @@ class PromoteController extends BaseController public function shift() { - $this->ajaxReturn([ - 'status' => false, - 'msg'=>'该功能暂时关闭' - ]); - $loginPromote = $this->getLoginPromote(); $params = $_POST; + if (isset($params['type']) && $params['type'] == 2) { + $this->ajaxReturn([ + 'status' => false, + 'msg'=>'该功能暂时关闭' + ]); + } + $params['creator_id'] = $loginPromote['id']; $params['creator_type'] = 1; $promoteService = new PromoteService();