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