mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-25 12:09:09 +08:00
1.修正home模块编辑器图片上传
2.精简CsrfToken白名单
This commit is contained in:
parent
8edc8bfee4
commit
9cb1edfa49
@ -14,7 +14,6 @@
|
|||||||
- 优化AccountTrait
|
- 优化AccountTrait
|
||||||
- 优化错误处理
|
- 优化错误处理
|
||||||
|
|
||||||
|
|
||||||
### [v1.6.7](https://gitee.com/koogua/course-tencent-cloud/releases/v1.6.7)(2023-12-15)
|
### [v1.6.7](https://gitee.com/koogua/course-tencent-cloud/releases/v1.6.7)(2023-12-15)
|
||||||
|
|
||||||
- 增加文章分类功能
|
- 增加文章分类功能
|
||||||
|
@ -16,7 +16,7 @@ class AppInfo
|
|||||||
|
|
||||||
protected $link = 'https://www.koogua.com';
|
protected $link = 'https://www.koogua.com';
|
||||||
|
|
||||||
protected $version = '1.6.8';
|
protected $version = '1.6.9';
|
||||||
|
|
||||||
public function __get($name)
|
public function __get($name)
|
||||||
{
|
{
|
||||||
|
@ -151,7 +151,7 @@ class EditorStorage extends Storage
|
|||||||
{
|
{
|
||||||
$path = parse_url($imageUrl, PHP_URL_PATH);
|
$path = parse_url($imageUrl, PHP_URL_PATH);
|
||||||
|
|
||||||
preg_match('/(\S+)\.(png|gif|jpg|jpeg)/i', $path, $matches);
|
preg_match('/(\S+)\.(png|gif|jpg|jpeg|webp)/i', $path, $matches);
|
||||||
|
|
||||||
return $matches[2] ? strtolower($matches[2]) : 'jpg';
|
return $matches[2] ? strtolower($matches[2]) : 'jpg';
|
||||||
}
|
}
|
||||||
|
@ -60,9 +60,7 @@ class Security extends Validator
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'admin.upload.content_img',
|
'admin.upload.content_img',
|
||||||
'admin.upload.remote_img',
|
|
||||||
'home.upload.content_img',
|
'home.upload.content_img',
|
||||||
'home.upload.remote_img',
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ layui.use(['jquery'], function () {
|
|||||||
var editor;
|
var editor;
|
||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
uploadJson: '/admin/upload/content/img',
|
uploadJson: '/upload/content/img',
|
||||||
cssPath: '/static/home/css/content.css',
|
cssPath: '/static/home/css/content.css',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '300px',
|
height: '300px',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user