Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
f9addb24
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,发现更多精彩内容 >>
提交
f9addb24
编写于
4月 30, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
应用管理优化
上级
bc2b5758
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
21 deletion
+24
-21
application/service/PluginsAdminService.php
application/service/PluginsAdminService.php
+5
-5
application/tags.php
application/tags.php
+19
-16
未找到文件。
application/service/PluginsAdminService.php
浏览文件 @
f9addb24
...
...
@@ -702,30 +702,30 @@ php;
if
(
isset
(
$params
[
'is_home'
])
&&
$params
[
'is_home'
]
==
1
)
{
// 创建文件
if
(
@
file_put_contents
(
$app_dir
.
DS
.
'Index.php'
,
$index
)
===
false
)
if
(
!
file_exists
(
$app_dir
.
DS
.
'Index.php'
)
&&
@
file_put_contents
(
$app_dir
.
DS
.
'Index.php'
,
$index
)
===
false
)
{
return
DataReturn
(
'应用文件创建失败[index]'
,
-
11
);
}
// 应用前端视图目录不存在则创建
$app_view_index_dir
=
APP_PATH
.
'plugins'
.
DS
.
'view'
.
DS
.
trim
(
$params
[
'plugins'
])
.
DS
.
'index'
;
if
(
\
base\FileUtil
::
CreateDir
(
$app_view_index_dir
)
!==
true
)
if
(
!
is_dir
(
$app_view_index_dir
)
&&
\
base\FileUtil
::
CreateDir
(
$app_view_index_dir
)
!==
true
)
{
return
DataReturn
(
'应用视图目录创建失败[index]'
,
-
10
);
}
if
(
@
file_put_contents
(
$app_view_index_dir
.
DS
.
'index.html'
,
$index_view
)
===
false
)
if
(
!
file_exists
(
$app_view_index_dir
.
DS
.
'index.html'
)
&&
@
file_put_contents
(
$app_view_index_dir
.
DS
.
'index.html'
,
$index_view
)
===
false
)
{
return
DataReturn
(
'应用视图文件创建失败[index-view]'
,
-
11
);
}
// 前端css目录创建
if
(
\
base\FileUtil
::
CreateDir
(
$app_static_css_dir
.
DS
.
'index'
)
!==
true
)
if
(
!
is_dir
(
$app_static_css_dir
.
DS
.
'index'
)
&&
\
base\FileUtil
::
CreateDir
(
$app_static_css_dir
.
DS
.
'index'
)
!==
true
)
{
return
DataReturn
(
'应用静态目录创建失败[css/index]'
,
-
10
);
}
// css创建
if
(
@
file_put_contents
(
$app_static_css_dir
.
DS
.
'index'
.
DS
.
'index.css'
,
$index_css
)
===
false
)
if
(
!
file_exists
(
$app_static_css_dir
.
DS
.
'index'
.
DS
.
'index.css'
)
&&
@
file_put_contents
(
$app_static_css_dir
.
DS
.
'index'
.
DS
.
'index.css'
,
$index_css
)
===
false
)
{
return
DataReturn
(
'应用静态文件创建失败[index-css]'
,
-
11
);
}
...
...
application/tags.php
浏览文件 @
f9addb24
...
...
@@ -46,16 +46,30 @@ return array (
array
(
0
=>
'app\\plugins\\userloginrewardintegral\\Hook'
,
),
'plugins_
service_navigation_header_handle
'
=>
'plugins_
css
'
=>
array
(
0
=>
'app\\plugins\\answers\\Hook'
,
1
=>
'app\\plugins\\touristbuy\\Hook'
,
0
=>
'app\\plugins\\commonrightnavigation\\Hook'
,
1
=>
'app\\plugins\\freightfee\\Hook'
,
2
=>
'app\\plugins\\share\\Hook'
,
3
=>
'app\\plugins\\footercustomerservice\\Hook'
,
4
=>
'app\\plugins\\membershiplevel\\Hook'
,
),
'plugins_
view_common_bottom
'
=>
'plugins_
js
'
=>
array
(
0
=>
'app\\plugins\\
expressforkd
n\\Hook'
,
0
=>
'app\\plugins\\
commonrightnavigatio
n\\Hook'
,
1
=>
'app\\plugins\\share\\Hook'
,
),
'plugins_view_common_bottom'
=>
array
(
0
=>
'app\\plugins\\commonrightnavigation\\Hook'
,
1
=>
'app\\plugins\\expressforkdn\\Hook'
,
2
=>
'app\\plugins\\share\\Hook'
,
),
'plugins_service_navigation_header_handle'
=>
array
(
0
=>
'app\\plugins\\answers\\Hook'
,
1
=>
'app\\plugins\\touristbuy\\Hook'
,
),
'plugins_admin_view_common_bottom'
=>
array
(
0
=>
'app\\plugins\\expressforkdn\\Hook'
,
...
...
@@ -102,13 +116,6 @@ return array (
array
(
0
=>
'app\\plugins\\touristbuy\\Hook'
,
),
'plugins_css'
=>
array
(
0
=>
'app\\plugins\\freightfee\\Hook'
,
1
=>
'app\\plugins\\share\\Hook'
,
2
=>
'app\\plugins\\footercustomerservice\\Hook'
,
3
=>
'app\\plugins\\membershiplevel\\Hook'
,
),
'plugins_service_buy_handle'
=>
array
(
0
=>
'app\\plugins\\freightfee\\Hook'
,
...
...
@@ -119,10 +126,6 @@ return array (
array
(
0
=>
'app\\plugins\\freightfee\\Hook'
,
),
'plugins_js'
=>
array
(
0
=>
'app\\plugins\\share\\Hook'
,
),
'plugins_view_goods_detail_photo_bottom'
=>
array
(
0
=>
'app\\plugins\\share\\Hook'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录