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()]);