Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
af0c84c5
ShopXO
项目概览
jcy2004x
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
af0c84c5
编写于
8月 07, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
附件配置细节优化
上级
b607ca2c
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
21 addition
and
30 deletion
+21
-30
application/common.php
application/common.php
+6
-2
application/service/UeditorService.php
application/service/UeditorService.php
+1
-1
application/tags.php
application/tags.php
+0
-8
config/console.php
config/console.php
+1
-1
config/ueditor.php
config/ueditor.php
+13
-18
未找到文件。
application/common.php
浏览文件 @
af0c84c5
...
...
@@ -18,12 +18,16 @@
* @version 1.0.0
* @date 2019-08-06
* @desc description
* @param [string] $path [参数字符串 格式如: a/aa/b/bb/c/cc ]
* @param [string] $key [指定key]
* @param [mixed] $default [默认值]
* @param [string] $path [参数字符串 格式如: a/aa/b/bb/c/cc ]
*/
function
PathToParams
(
$
path
,
$key
=
null
,
$default
=
null
)
function
PathToParams
(
$
key
=
null
,
$default
=
null
,
$path
=
''
)
{
if
(
empty
(
$path
)
&&
isset
(
$_REQUEST
[
's'
]))
{
$path
=
$_REQUEST
[
's'
];
}
if
(
!
empty
(
$path
))
{
if
(
substr
(
$path
,
0
,
1
)
==
'/'
)
...
...
application/service/UeditorService.php
浏览文件 @
af0c84c5
...
...
@@ -42,7 +42,7 @@ class UeditorService
self
::
$params
=
$params
;
self
::
$current_config
=
config
(
'ueditor.'
);
self
::
$current_action
=
isset
(
$params
[
'action'
])
?
$params
[
'action'
]
:
''
;
self
::
$path_type
=
isset
(
$params
[
'path_type'
])
?
$params
[
'path_type'
]
:
(
isset
(
$params
[
's'
])
?
PathToParams
(
$params
[
's'
],
'path_type'
,
'other'
)
:
'
'
);
self
::
$path_type
=
isset
(
$params
[
'path_type'
])
?
$params
[
'path_type'
]
:
PathToParams
(
'path_type'
,
'other
'
);
// action
switch
(
self
::
$current_action
)
...
...
application/tags.php
浏览文件 @
af0c84c5
...
...
@@ -104,14 +104,6 @@ return array (
array
(
0
=>
'app\\plugins\\membershiplevelvip\\Hook'
,
),
'plugins_service_users_center_left_menu_handle'
=>
array
(
0
=>
'app\\plugins\\wallet\\Hook'
,
),
'plugins_service_header_navigation_top_right_handle'
=>
array
(
0
=>
'app\\plugins\\wallet\\Hook'
,
),
'plugins_view_goods_detail_photo_within'
=>
array
(
0
=>
'app\\plugins\\goodsphototag\\Hook'
,
...
...
config/console.php
浏览文件 @
af0c84c5
...
...
@@ -13,7 +13,7 @@
// | 控制台配置
// +----------------------------------------------------------------------
return
[
'name'
=>
'
Think
Console'
,
'name'
=>
'
ShopXO
Console'
,
'version'
=>
'0.1'
,
'user'
=>
null
,
'auto_path'
=>
env
(
'app_path'
)
.
'command'
.
DIRECTORY_SEPARATOR
,
...
...
config/ueditor.php
浏览文件 @
af0c84c5
...
...
@@ -9,15 +9,10 @@
// | Author: Devil
// +----------------------------------------------------------------------
/**
* 百度编辑器配置信息
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-01T21:51:08+0800
*/
$params
=
input
();
$path_type
=
isset
(
$params
[
'path_type'
])
?
$params
[
'path_type'
]
:
(
isset
(
$params
[
's'
])
?
PathToParams
(
$params
[
's'
],
'path_type'
,
'other'
)
:
''
);
// +----------------------------------------------------------------------
// | 百度编辑器配置信息
// +----------------------------------------------------------------------
$config_path_type
=
PathToParams
(
'path_type'
,
'other'
);
return
[
// 上传图片配置项
// 执行上传图片的action名称
...
...
@@ -45,7 +40,7 @@ return [
'imageUrlPrefix'
=>
''
,
// 上传保存路径,可以自定义保存路径和文件名格式
'imagePathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/images/'
.
$path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
'imagePathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/images/'
.
$
config_
path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
// 涂鸦图片上传配置项
...
...
@@ -56,7 +51,7 @@ return [
'scrawlFieldName'
=>
'upfile'
,
// 上传保存路径,可以自定义保存路径和文件名格式
'scrawlPathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/images/'
.
$path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
'scrawlPathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/images/'
.
$
config_
path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
// 上传大小限制,单位B
'scrawlMaxSize'
=>
MyC
(
'home_max_limit_image'
,
2048000
,
true
),
...
...
@@ -76,7 +71,7 @@ return [
'snapscreenActionName'
=>
'uploadimage'
,
// 上传保存路径,可以自定义保存路径和文件名格式
'snapscreenPathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/images/'
.
$path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
'snapscreenPathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/images/'
.
$
config_
path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
// 图片访问路径前缀
'snapscreenUrlPrefix'
=>
''
,
...
...
@@ -96,7 +91,7 @@ return [
'catcherFieldName'
=>
'source'
,
// 上传保存路径,可以自定义保存路径和文件名格式
'catcherPathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/images/'
.
$path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
'catcherPathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/images/'
.
$
config_
path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
// 图片访问路径前缀
'catcherUrlPrefix'
=>
''
,
...
...
@@ -116,7 +111,7 @@ return [
'videoFieldName'
=>
'upfile'
,
// 上传保存路径,可以自定义保存路径和文件名格式
'videoPathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/video/'
.
$path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
'videoPathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/video/'
.
$
config_
path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
// 视频访问路径前缀
'videoUrlPrefix'
=>
''
,
...
...
@@ -136,7 +131,7 @@ return [
'fileFieldName'
=>
'upfile'
,
// 上传保存路径,可以自定义保存路径和文件名格式
'filePathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/file/'
.
$path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
'filePathFormat'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/file/'
.
$
config_
path_type
.
'/{yyyy}/{mm}/{dd}/{time}{rand:6}'
,
// 文件访问路径前缀
'fileUrlPrefix'
=>
''
,
...
...
@@ -153,7 +148,7 @@ return [
'imageManagerActionName'
=>
'listimage'
,
// 指定要列出图片的目录
'imageManagerListPath'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/images/'
.
$path_type
.
'/'
,
'imageManagerListPath'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/images/'
.
$
config_
path_type
.
'/'
,
// 每次列出文件数量
'imageManagerListSize'
=>
20
,
...
...
@@ -173,7 +168,7 @@ return [
'fileManagerActionName'
=>
'listfile'
,
// 指定要列出文件的目录
'fileManagerListPath'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/file/'
.
$path_type
.
'/'
,
'fileManagerListPath'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/file/'
.
$
config_
path_type
.
'/'
,
// 文件访问路径前缀
'fileManagerUrlPrefix'
=>
''
,
...
...
@@ -188,7 +183,7 @@ return [
'videoManagerActionName'
=>
'listvideo'
,
// 指定要列出文件的目录
'videoManagerListPath'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/video/'
.
$path_type
.
'/'
,
'videoManagerListPath'
=>
__MY_ROOT_PUBLIC__
.
'static/upload/video/'
.
$
config_
path_type
.
'/'
,
// 文件访问路径前缀
'videoManagerUrlPrefix'
=>
''
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录