1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-23 11:58:41 +08:00

v1.6.5发布说明

This commit is contained in:
xiaochong0302 2023-07-05 16:58:42 +08:00
parent e48d831ce3
commit 621b921862
2 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,10 @@
- 升级layui-v2.8.8 - 升级layui-v2.8.8
- 使用本地图像验证码 - 使用本地图像验证码
- 清理无用的计划任务 - 优化计划任务脚本
- 优化日志清理脚本
- 优化钉钉webhook
- 修正图文分享参数问题
### [v1.6.4](https://gitee.com/koogua/course-tencent-cloud/releases/v1.6.4)(2023-06-15) ### [v1.6.4](https://gitee.com/koogua/course-tencent-cloud/releases/v1.6.4)(2023-06-15)

View File

@ -99,7 +99,7 @@ class Redis extends \Phalcon\Cache\Backend\Redis
if ($lifetime === null) { if ($lifetime === null) {
$tmp = $this->_lastLifetime; $tmp = $this->_lastLifetime;
$ttl = $tmp ? $tmp : $frontend->getLifetime(); $ttl = $tmp ?: $frontend->getLifetime();
} else { } else {
$ttl = $lifetime; $ttl = $lifetime;
} }
@ -157,7 +157,7 @@ class Redis extends \Phalcon\Cache\Backend\Redis
$redis = $this->getRedis(); $redis = $this->getRedis();
$pattern = "{$this->_prefix}" . ($prefix ? $prefix : '') . '*'; $pattern = "{$this->_prefix}" . ($prefix ?: '') . '*';
$redis->setOption(\Redis::OPT_SCAN, \Redis::SCAN_RETRY); $redis->setOption(\Redis::OPT_SCAN, \Redis::SCAN_RETRY);
@ -255,7 +255,7 @@ class Redis extends \Phalcon\Cache\Backend\Redis
*/ */
public function flush(): bool public function flush(): bool
{ {
return true;
} }
/** /**