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); }