mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-07-12 19:39:10 +08:00
1.清理群组残留
2.优化HtmlPurifier缓存目录自动创建
This commit is contained in:
parent
107c54dba9
commit
cd9422afc1
@ -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)
|
### [v1.5.6](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.6)(2022-08-08)
|
||||||
|
|
||||||
- 增加应用内命令行migrations
|
- 增加应用内命令行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)
|
### [v1.5.5](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.5)(2022-07-27)
|
||||||
|
|
||||||
|
@ -148,7 +148,6 @@ class UploadController extends Controller
|
|||||||
$items = [];
|
$items = [];
|
||||||
|
|
||||||
$items['user_avatar'] = $service->uploadDefaultUserAvatar();
|
$items['user_avatar'] = $service->uploadDefaultUserAvatar();
|
||||||
$items['group_avatar'] = $service->uploadDefaultGroupAvatar();
|
|
||||||
$items['course_cover'] = $service->uploadDefaultCourseCover();
|
$items['course_cover'] = $service->uploadDefaultCourseCover();
|
||||||
$items['package_cover'] = $service->uploadDefaultPackageCover();
|
$items['package_cover'] = $service->uploadDefaultPackageCover();
|
||||||
$items['gift_cover'] = $service->uploadDefaultGiftCover();
|
$items['gift_cover'] = $service->uploadDefaultGiftCover();
|
||||||
|
@ -117,10 +117,6 @@
|
|||||||
<td>用户头像</td>
|
<td>用户头像</td>
|
||||||
<td>public/static/admin/img/default/user_cover.png</td>
|
<td>public/static/admin/img/default/user_cover.png</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>群组头像</td>
|
|
||||||
<td>public/static/admin/img/default/group_cover.png</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>课程封面</td>
|
<td>课程封面</td>
|
||||||
<td>public/static/admin/img/default/course_cover.png</td>
|
<td>public/static/admin/img/default/course_cover.png</td>
|
||||||
|
@ -16,7 +16,7 @@ class AppInfo
|
|||||||
|
|
||||||
protected $link = 'https://koogua.com';
|
protected $link = 'https://koogua.com';
|
||||||
|
|
||||||
protected $version = '1.5.6';
|
protected $version = '1.5.7';
|
||||||
|
|
||||||
public function __get($name)
|
public function __get($name)
|
||||||
{
|
{
|
||||||
|
@ -55,7 +55,13 @@ class Purifier
|
|||||||
$config->set($key, $value);
|
$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;
|
return $config;
|
||||||
}
|
}
|
||||||
|
@ -49,20 +49,6 @@ class MyStorage extends Storage
|
|||||||
return $this->putFile($key, $filename);
|
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 |
Loading…
x
Reference in New Issue
Block a user