From 71a07289e938d1ec4080dafe7dde529237fec5cb Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 3 Sep 2021 14:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/ConsoleController.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/ConsoleController.class.php b/Application/Admin/Controller/ConsoleController.class.php index c8eeabf34..7f9a96213 100644 --- a/Application/Admin/Controller/ConsoleController.class.php +++ b/Application/Admin/Controller/ConsoleController.class.php @@ -760,6 +760,7 @@ class ConsoleController extends Think { { $fromAccount = 'nola2021'; $toAccount = 'shanye001'; + $shiftIds = [7805]; $formPromote = M('promote', 'tab_')->where(['account' => $fromAccount])->find(); $toPromote = M('promote', 'tab_')->where(['account' => $toAccount])->find(); @@ -768,13 +769,13 @@ class ConsoleController extends Think { var_dump([ 'from_promote_id' => $formPromote['id'], 'to_promote_id' => $toPromote['id'], - 'shift_ids' => '7805', + 'shift_ids' => json_encode($shiftIds), ]); $service = new PromoteService(); $service->shiftPromote([ 'from_promote_id' => $formPromote['id'], 'to_promote_id' => $toPromote['id'], - 'shift_ids' => '7805', + 'shift_ids' => json_encode($shiftIds), ]); M('promote', 'tab_')->where(['level1_id' => $formPromote['id'], 'level2_id' => 7805, 'company_id' => $formPromote['company_id']])->save([ 'company_id' => $toPromote['company_id'],