master
elf 2 years ago
parent d4d78e75b3
commit db0608a297

@ -164,6 +164,10 @@ class ShiftPlayer
private function updateMend($userId, $amount) private function updateMend($userId, $amount)
{ {
if (count($this->userIds) == 0) {
return true;
}
return M('mend', 'tab_') return M('mend', 'tab_')
->where(['task_id' => $this->task['id'], 'user_id' => $userId]) ->where(['task_id' => $this->task['id'], 'user_id' => $userId])
->save(['status' => 1, 'pay_amount' => ['exp', 'pay_amount+' . $amount], 'update_time' => time()]); ->save(['status' => 1, 'pay_amount' => ['exp', 'pay_amount+' . $amount], 'update_time' => time()]);

Loading…
Cancel
Save