redis->lPush这个方法能拿到返回值么?
打印了一下,好像什么都没有
$id = $this->post('id');
$info = $this->PushModel->getPush($id);
if(empty($info)){
$this->json(Constant::FAILURE);
}
$gameId = $info['game_id'];
$title = $info['title'];
$content = $info['content'];
$pushInfo = "$id|$gameId|$title|$content";
$redis = $this->redis();
$ret = $redis->connect(REDIS_HOST, ZGH_REDIS_PORT);
$res = $redis->lPush(REDIS_HRGAME_PUSH_BATCH_KEY,$pushInfo);
print_r($ret);
print_r($res);exit;
阿晨1998