From 48ca90bbf35fd2c1666e6dc57d4959a4a299d376 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Tue, 14 Jan 2020 11:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E4=BC=9A=E5=88=86=E6=88=90=E7=AE=A1?= =?UTF-8?q?=E7=90=86--=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/AutoController.class.php | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/Application/Admin/Controller/AutoController.class.php b/Application/Admin/Controller/AutoController.class.php index e75d464ac..a441c54f0 100644 --- a/Application/Admin/Controller/AutoController.class.php +++ b/Application/Admin/Controller/AutoController.class.php @@ -1083,22 +1083,17 @@ public function auto_rrdae(){ $error_repeat = 0; if (!empty($promotes)) { - switch ($settlement) { - case 1: - $fun = 'promoteWithdrawWeeklyByPromote'; - break; - case 2: - $fun = 'promoteWithdrawPerMonthByPromote'; - break; - case 3: - $fun = 'promoteWithdrawRecoupByPromote'; - break; - } foreach ($promotes as $promote) { - if ($fun == 'promoteWithdrawRecoupByPromote') { - $result = $withdrawModel->$fun($promote); - } else { - $result = $withdrawModel->$fun($promote, $initial); + switch ($settlement) { + case 1: + $result = $withdrawModel->promoteWithdrawWeeklyByPromote($promote, $initial); + break; + case 2: + $result = $withdrawModel->promoteWithdrawRecoupByPromote($promote, $initial); + break; + case 3: + $result = $withdrawModel->promoteWithdrawRecoupByPromote($promote); + break; } switch ($result) { case -4: