From 0c0b2d2f01f28f9fa41177ed79d4628d63ebe785 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Fri, 6 Mar 2020 17:56:27 +0800 Subject: [PATCH] =?UTF-8?q?record=5FPromoteLogs=E7=83=AD=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Service/PromoteService.class.php | 1 - Application/Home/Controller/PromoteController.class.php | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/Base/Service/PromoteService.class.php b/Application/Base/Service/PromoteService.class.php index 30f8b41b7..6595b95ab 100644 --- a/Application/Base/Service/PromoteService.class.php +++ b/Application/Base/Service/PromoteService.class.php @@ -152,7 +152,6 @@ class PromoteService { ]; if (M('shift_task', 'sys_')->add($data)) { - recordPromoteLogs('管理中心','渠道迁移'); return [ 'status' => true, 'msg'=>'迁移任务创建成功' diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index c6ecc94fa..cdeb220d8 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -2028,6 +2028,9 @@ class PromoteController extends BaseController $params['creator_type'] = 1; $promoteService = new PromoteService(); $result = $promoteService->addShiftTask($params); + if ($result['status']) { + recordPromoteLogs('管理中心','渠道迁移'); + } $this->ajaxReturn($result); }