From db0608a297121747ae8572a5bb35dacc584a2784 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Mon, 1 Aug 2022 22:15:31 +0800 Subject: [PATCH] yh --- Application/Base/Business/ShiftPlayer.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Application/Base/Business/ShiftPlayer.class.php b/Application/Base/Business/ShiftPlayer.class.php index 04686bf21..701a22213 100644 --- a/Application/Base/Business/ShiftPlayer.class.php +++ b/Application/Base/Business/ShiftPlayer.class.php @@ -164,6 +164,10 @@ class ShiftPlayer private function updateMend($userId, $amount) { + if (count($this->userIds) == 0) { + return true; + } + return M('mend', 'tab_') ->where(['task_id' => $this->task['id'], 'user_id' => $userId]) ->save(['status' => 1, 'pay_amount' => ['exp', 'pay_amount+' . $amount], 'update_time' => time()]);