From 31723fbc0bd29b9243a4ae0d5a372b6b22dcd709 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Thu, 26 Dec 2019 13:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/PromoteController.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index 36edd4cc4..6b6d5ead8 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -985,6 +985,9 @@ class PromoteController extends BaseController } else { $parent = $loginPromote; } + if (C('PROMOTE_AUTO_AUDIT') == 1) { + $params['status'] = 1; + } $promoteService = new PromoteService(); $result = $promoteService->checkAddPromote($params); if (!$result['status']) {