Commit 059a7bf6 authored by hujun's avatar hujun

缓存push_id有效期

parent e29883dc
......@@ -736,7 +736,7 @@ class ChatService
$redis = RedisExt::getRedis();
$push_old = $redis->get($key);
if ($push_old != $push_id) {
$redis->set($key, $push_id);
$redis->set($key, $push_id, 2592000); //30天有效期
}
return true;
}
......
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