1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-10 10:40:03 +08:00

1.清理群组残留

2.优化HtmlPurifier缓存目录自动创建
This commit is contained in:
koogua 2022-08-09 16:43:55 +08:00
parent 107c54dba9
commit cd9422afc1
7 changed files with 15 additions and 22 deletions

View File

@ -1,8 +1,14 @@
### [v1.5.7](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.7)(2022-08-28)
- 清理群组残留
- 优化HtmlPurifier缓存目录自动创建
### [v1.5.6](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.6)(2022-08-08)
- 增加应用内命令行migrations
- 移除群组和微聊模块
- kindeditor替换vditor - markdown转html
- kindeditor替换vditor
- markdown转html
### [v1.5.5](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.5)(2022-07-27)

View File

@ -148,7 +148,6 @@ class UploadController extends Controller
$items = [];
$items['user_avatar'] = $service->uploadDefaultUserAvatar();
$items['group_avatar'] = $service->uploadDefaultGroupAvatar();
$items['course_cover'] = $service->uploadDefaultCourseCover();
$items['package_cover'] = $service->uploadDefaultPackageCover();
$items['gift_cover'] = $service->uploadDefaultGiftCover();

View File

@ -117,10 +117,6 @@
<td>用户头像</td>
<td>public/static/admin/img/default/user_cover.png</td>
</tr>
<tr>
<td>群组头像</td>
<td>public/static/admin/img/default/group_cover.png</td>
</tr>
<tr>
<td>课程封面</td>
<td>public/static/admin/img/default/course_cover.png</td>

View File

@ -16,7 +16,7 @@ class AppInfo
protected $link = 'https://koogua.com';
protected $version = '1.5.6';
protected $version = '1.5.7';
public function __get($name)
{

View File

@ -55,7 +55,13 @@ class Purifier
$config->set($key, $value);
}
$config->set('Cache.SerializerPath', cache_path('purifier'));
$serializerPath = cache_path('purifier');
if (file_exists($serializerPath) == false) {
mkdir($serializerPath, 0777);
}
$config->set('Cache.SerializerPath', $serializerPath);
return $config;
}

View File

@ -49,20 +49,6 @@ class MyStorage extends Storage
return $this->putFile($key, $filename);
}
/**
* 上传默认群组头像
*
* @return false|mixed|string
*/
public function uploadDefaultGroupAvatar()
{
$filename = static_path('admin/img/default/group_avatar.png');
$key = '/img/default/group_avatar.png';
return $this->putFile($key, $filename);
}
/**
* 上传默认课程封面
*

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB