diff --git a/CHANGELOG.md b/CHANGELOG.md index 773d6d48..c6d330de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +### [v1.3.8](https://gitee.com/koogua/course-tencent-cloud/releases/v1.3.8)(2021-07-11) + +### 更新 + +- 更正readme中github仓库信息 +- 增加清除点播地址缓存命令 +- 若干缓存键名重命名 后台站点名称修改为用户站点名称 +- 标签名称比较忽略大小写 +- 重新设计前后台登录界面 +- 更正后台存储设置中图片样式的参数描述 +- 记录逻辑删除后浏览重定向到404 +- 修正图文类型的章节markdown解析问题 +- 优化文章和提问不必要的标签数据提交 +- 图文中图片增加点击放大预览功能 +- 各数据结构中增加若干业务字段 +- COS存储中去除多余的年月目录结构 +- 清理优化css +- 修正直播地址问题 +- 修正评论审核路由问题 +- 修正取消收藏问题 + ### [v1.3.7](https://gitee.com/koogua/course-tencent-cloud/releases/v1.3.7)(2021-06-14) ### 更新 diff --git a/README.md b/README.md index ab93e614..0367f964 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,17 @@ ### 项目介绍 -酷瓜云课堂,依托腾讯云基础服务架构,采用C扩展框架Phalcon开发,GPL-2.0开源协议,致力开源网课系统,开源网校系统,开源在线教育系统。 +酷瓜云课堂,依托腾讯云基础服务架构,采用C扩展框架Phalcon开发,GPL-2.0开源协议,致力开源网课系统,开源网校系统,开源知识付费系统,开源在线教育系统。 [](https://gitee.com/koogua/course-tencent-cloud) [](https://gitee.com/koogua/course-tencent-cloud) -[](https://github.com/xiaochong0302/course-tencent-cloud) -[](https://github.com/xiaochong0302/course-tencent-cloud) +[](https://github.com/xiaochong0302/course-tencent-cloud) +[](https://github.com/xiaochong0302/course-tencent-cloud)  ### 系统功能 -实现了点播、直播、专栏、面授、问答、会员、群组、积分、秒杀等,100%真开源在线教育解决方案。 +实现了点播、直播、专栏、面授、问答、会员、群组、微聊、积分、秒杀等。 友情提示: @@ -57,7 +57,7 @@ Tips: 请用手机注册一个新账号,用户中心 -> 关注订阅,扫码 ### 项目组件 - 后台框架:[phalcon 3.4.5](https://phalcon.io) -- 前端框架:[layui 2.5.6](https://layui.com), [layim 3.9.5](https://www.layui.com/layim)(已授权) +- 前端框架:[layui 2.6.8](https://layui.com), [layim 3.9.8](https://www.layui.com/layim)(已授权) - 全文检索:[xunsearch 1.4.9](http://www.xunsearch.com) - 即时通讯:[workerman 3.5.22](https://workerman.net) - 基础依赖:[php7.3](https://php.net), [mysql5.7](https://mysql.com), [redis5.0](https://redis.io) @@ -70,8 +70,8 @@ Tips: 请用手机注册一个新账号,用户中心 -> 关注订阅,扫码 ### 意见反馈 -- [在线反馈](https://gitee.com/koogua/course-tencent-cloud/issues)(推荐) -- [官方论坛](https://koogua.com/forum)(推荐) +- [码云平台](https://gitee.com/koogua/course-tencent-cloud/issues) +- [官方社区](https://koogua.com/community) - QQ交流群: 787363898 ### 有阿里云版吗? diff --git a/app/Caches/TopAnswererList.php b/app/Caches/TopAnswererList.php index 08555564..aa2f5225 100644 --- a/app/Caches/TopAnswererList.php +++ b/app/Caches/TopAnswererList.php @@ -25,7 +25,7 @@ class TopAnswererList extends Cache public function getKey($id = null) { - return 'question_top_answerer_list'; + return 'top_answerer_list'; } public function getContent($id = null) diff --git a/app/Console/Tasks/MaintainTask.php b/app/Console/Tasks/MaintainTask.php index df392491..dc67e75f 100644 --- a/app/Console/Tasks/MaintainTask.php +++ b/app/Console/Tasks/MaintainTask.php @@ -9,6 +9,7 @@ namespace App\Console\Tasks; use App\Http\Admin\Services\Setting as SettingService; use App\Library\Utils\Password as PasswordUtil; +use App\Models\ChapterVod as ChapterVodModel; use App\Services\Utils\IndexCourseCache as IndexCourseCacheUtil; use App\Validators\Account as AccountValidator; @@ -119,4 +120,28 @@ class MaintainTask extends Task echo '------ enable site success ------' . PHP_EOL; } + /** + * 清理点播转码缓存 + * + * @command: php console.php maintain clear_file_transcode + */ + public function clearFileTranscodeAction() + { + $chapterVodModel = new ChapterVodModel(); + + $tableName = $chapterVodModel->getSource(); + + $data = ['file_transcode' => '[]']; + + $fields = array_keys($data); + + $values = array_values($data); + + $where = ['conditions' => 'file_id > 0']; + + $this->db->update($tableName, $fields, $values, $where); + + echo '------ clear file transcode success ------' . PHP_EOL; + } + } diff --git a/app/Http/Admin/Controllers/IndexController.php b/app/Http/Admin/Controllers/IndexController.php index 7d861396..72710d48 100644 --- a/app/Http/Admin/Controllers/IndexController.php +++ b/app/Http/Admin/Controllers/IndexController.php @@ -26,9 +26,11 @@ class IndexController extends Controller $topMenus = $indexService->getTopMenus(); $leftMenus = $indexService->getLeftMenus(); $appInfo = $indexService->getAppInfo(); + $siteInfo = $indexService->getSiteInfo(); $this->view->setRenderLevel(View::LEVEL_ACTION_VIEW); $this->view->setVar('app_info', $appInfo); + $this->view->setVar('site_info', $siteInfo); $this->view->setVar('top_menus', $topMenus); $this->view->setVar('left_menus', $leftMenus); } diff --git a/app/Http/Admin/Services/Index.php b/app/Http/Admin/Services/Index.php index 0fa5f7cc..b9d5bae3 100644 --- a/app/Http/Admin/Services/Index.php +++ b/app/Http/Admin/Services/Index.php @@ -47,6 +47,11 @@ class Index extends Service return $appInfo; } + public function getSiteInfo() + { + return $this->getSettings('site'); + } + public function getServerInfo() { return [ diff --git a/app/Http/Admin/Services/Tag.php b/app/Http/Admin/Services/Tag.php index 75a69c62..5317f8b3 100644 --- a/app/Http/Admin/Services/Tag.php +++ b/app/Http/Admin/Services/Tag.php @@ -67,7 +67,7 @@ class Tag extends Service if (isset($post['name'])) { $data['name'] = $validator->checkName($post['name']); - if ($data['name'] != $tag->name) { + if (strtolower($data['name']) != strtolower($tag->name)) { $validator->checkIfNameExists($data['name']); } } diff --git a/app/Http/Admin/Views/answer/list.volt b/app/Http/Admin/Views/answer/list.volt index d25b93b5..113b3510 100644 --- a/app/Http/Admin/Views/answer/list.volt +++ b/app/Http/Admin/Views/answer/list.volt @@ -4,6 +4,21 @@ {{ partial('macros/answer') }} + {% set search_url = url({'for':'admin.answer.search'}) %} + +