Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
aeae0f3d
ShopXO
项目概览
jamesyang1999
/
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,发现更多精彩内容 >>
提交
aeae0f3d
编写于
2月 14, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
应用管理优化
上级
570968b3
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
68 addition
and
37 deletion
+68
-37
application/plugins/commontopmaxpicture/config.json
application/plugins/commontopmaxpicture/config.json
+20
-12
application/plugins/commontopnotice/config.json
application/plugins/commontopnotice/config.json
+20
-12
application/plugins/usercentertopnotice/config.json
application/plugins/usercentertopnotice/config.json
+20
-12
application/service/PluginsAdminService.php
application/service/PluginsAdminService.php
+8
-1
未找到文件。
application/plugins/commontopmaxpicture/config.json
浏览文件 @
aeae0f3d
{
"base"
:
{
"name"
:
"顶部广告"
,
"logo"
:
"/static/upload/images/plugins_commontopmaxpicture/2019/02/09/1549671733987654.png"
,
"author"
:
"Devil"
,
"author_url"
:
"https://shopxo.net/"
,
"version"
:
"1.0.0"
,
"desc"
:
"顶部大图广告,突破视觉"
,
"apply_terminal"
:
[
"pc"
],
"apply_version"
:
[
"1.3.0"
],
"is_home"
:
false
"base"
:{
"plugins"
:
"commontopmaxpicture"
,
"name"
:
"顶部广告"
,
"logo"
:
"
\/
static
\/
upload
\/
images
\/
plugins_commontopmaxpicture
\/
2019
\/
02
\/
09
\/
1549671733987654.png"
,
"author"
:
"Devil"
,
"author_url"
:
"https:
\/\/
shopxo.net
\/
"
,
"version"
:
"1.0.0"
,
"desc"
:
"顶部大图广告,突破视觉"
,
"apply_terminal"
:[
"pc"
,
"h5"
],
"apply_version"
:[
"1.3.0"
],
"is_home"
:
false
},
"hook"
:
{
"plugins_common_top"
:
[
"app
\\
plugins
\\
commontopmaxpicture
\\
Hook"
]
"hook"
:{
"plugins_common_top"
:[
"app
\\
plugins
\\
commontopmaxpicture
\\
Hook"
]
}
}
\ No newline at end of file
application/plugins/commontopnotice/config.json
浏览文件 @
aeae0f3d
{
"base"
:
{
"name"
:
"顶部公告"
,
"logo"
:
"/static/upload/images/plugins_commontopnotice/2019/02/12/1549671733987652.png"
,
"author"
:
"Devil"
,
"author_url"
:
"https://shopxo.net/"
,
"version"
:
"1.0.0"
,
"desc"
:
"顶部公告,通知"
,
"apply_terminal"
:
[
"pc"
],
"apply_version"
:
[
"1.3.0"
],
"is_home"
:
false
"base"
:{
"plugins"
:
"commontopnotice"
,
"name"
:
"顶部公告"
,
"logo"
:
"
\/
static
\/
upload
\/
images
\/
plugins_commontopnotice
\/
2019
\/
02
\/
12
\/
1549671733987652.png"
,
"author"
:
"Devil"
,
"author_url"
:
"https:
\/\/
shopxo.net
\/
"
,
"version"
:
"1.0.0"
,
"desc"
:
"顶部公告,通知"
,
"apply_terminal"
:[
"pc"
,
"h5"
],
"apply_version"
:[
"1.3.0"
],
"is_home"
:
false
},
"hook"
:
{
"plugins_common_top"
:
[
"app
\\
plugins
\\
commontopnotice
\\
Hook"
]
"hook"
:{
"plugins_common_top"
:[
"app
\\
plugins
\\
commontopnotice
\\
Hook"
]
}
}
\ No newline at end of file
application/plugins/usercentertopnotice/config.json
浏览文件 @
aeae0f3d
{
"base"
:
{
"name"
:
"用户中心顶部公告"
,
"logo"
:
"/static/upload/images/plugins_usercentertopnotice/2019/02/12/1549671733967341.png"
,
"author"
:
"Devil"
,
"author_url"
:
"https://shopxo.net/"
,
"version"
:
"1.0.0"
,
"desc"
:
"用户中心顶部公告,通知"
,
"apply_terminal"
:
[
"pc"
],
"apply_version"
:
[
"1.3.0"
],
"is_home"
:
false
"base"
:{
"plugins"
:
"usercentertopnotice"
,
"name"
:
"用户中心顶部公告"
,
"logo"
:
"
\/
static
\/
upload
\/
images
\/
plugins_usercentertopnotice
\/
2019
\/
02
\/
12
\/
1549671733967341.png"
,
"author"
:
"Devil"
,
"author_url"
:
"https:
\/\/
shopxo.net
\/
"
,
"version"
:
"1.0.0"
,
"desc"
:
"用户中心顶部公告,通知"
,
"apply_terminal"
:[
"pc"
,
"h5"
],
"apply_version"
:[
"1.3.0"
],
"is_home"
:
false
},
"hook"
:
{
"plugins_user_center_top"
:
[
"app
\\
plugins
\\
usercentertopnotice
\\
Hook"
]
"hook"
:{
"plugins_user_center_top"
:[
"app
\\
plugins
\\
usercentertopnotice
\\
Hook"
]
}
}
\ No newline at end of file
application/service/PluginsAdminService.php
浏览文件 @
aeae0f3d
...
...
@@ -753,8 +753,15 @@ php;
'hook'
=>
(
object
)
$hook
,
];
// 文件存在是否有权限
$config_file
=
$app_dir
.
DS
.
'config.json'
;
if
(
file_exists
(
$config_file
)
&&
!
is_writable
(
$config_file
))
{
return
DataReturn
(
'应用配置文件没有操作权限'
.
'['
.
$config_file
.
']'
,
-
3
);
}
// 创建配置文件
if
(
@
file_put_contents
(
$
app_dir
.
DS
.
'config.json'
,
JsonFormat
(
$data
))
===
false
)
if
(
@
file_put_contents
(
$
config_file
,
JsonFormat
(
$data
))
===
false
)
{
return
DataReturn
(
'应用配置文件创建失败'
,
-
10
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录