Commit 14703492 authored by Liu lu's avatar Liu lu

异步日志调整

parent a5e70106
...@@ -35,11 +35,12 @@ abstract class RedisQueueBatchHandler ...@@ -35,11 +35,12 @@ abstract class RedisQueueBatchHandler
/** /**
* 添加至队列 * @param $data
* @param $specifyQueue
*/ */
public function addToQueue($data) public function addToQueue($data,$specifyQueue='')
{ {
$this->redis->rPush($this->queue_name,json_encode($data)); $this->redis->rPush($specifyQueue?:$this->queue_name,json_encode($data));
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment