where('status', SystemNoticeTargetBase::STATUS_SENDING) ->where('claim_time', '<', time() - self::RECLAIM_TIMEOUT) ->update([ 'status' => SystemNoticeTargetBase::STATUS_PENDING, 'claim_token' => '', 'claim_time' => 0, 'update_time' => time(), ]); return 'reclaimed: ' . $affected; } }