应用管理优化
parent
570968b3f7
commit
aeae0f3de5
|
|
@ -1,16 +1,24 @@
|
|||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +1,24 @@
|
|||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +1,24 @@
|
|||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue