|
@@ -1794,7 +1794,7 @@ class Events
|
|
|
// 每1分钟做一次redis ping检测避免redis掉线
|
|
// 每1分钟做一次redis ping检测避免redis掉线
|
|
|
Timer::add(60, function () {
|
|
Timer::add(60, function () {
|
|
|
if (!self::$logic->RedisPing()) {
|
|
if (!self::$logic->RedisPing()) {
|
|
|
- self::$logic->getRedis(0);
|
|
|
|
|
|
|
+ self::$redis = self::$logic->getRedis(0);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|