Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
ab6b4170
ShopXO
项目概览
纵之格
/
ShopXO
通知
394
Star
16
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ab6b4170
编写于
7月 26, 2021
作者:
D
Devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
39a9434e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
29 addition
and
20 deletion
+29
-20
app/admin/controller/Plugins.php
app/admin/controller/Plugins.php
+11
-7
app/common.php
app/common.php
+1
-0
app/index/controller/Plugins.php
app/index/controller/Plugins.php
+11
-7
app/service/PluginsUpgradeService.php
app/service/PluginsUpgradeService.php
+1
-1
app/service/StoreService.php
app/service/StoreService.php
+4
-4
app/service/SystemUpgradeService.php
app/service/SystemUpgradeService.php
+1
-1
未找到文件。
app/admin/controller/Plugins.php
浏览文件 @
ab6b4170
...
...
@@ -10,6 +10,7 @@
// +----------------------------------------------------------------------
namespace
app\admin\controller
;
use
app\service\ApiService
;
use
app\service\PluginsService
;
use
app\service\ResourcesService
;
...
...
@@ -96,19 +97,22 @@ class Plugins extends Common
// 调用
$ret
=
PluginsService
::
PluginsControlCall
(
$pluginsname
,
$pluginscontrol
,
$pluginsaction
,
'admin'
,
$params
);
// ajax 返回的都是数组、使用统一api返回处理
if
(
IS_AJAX
)
{
return
ApiService
::
ApiDataReturn
(
$ret
[
'data'
]);
}
if
(
$ret
[
'code'
]
==
0
)
{
// 默认则是视图内容
return
$ret
[
'data'
];
}
// 调用失败
if
(
IS_AJAX
)
{
return
$ret
;
}
else
{
MyViewAssign
(
'msg'
,
$ret
[
'msg'
]);
return
MyView
();
}
MyViewAssign
(
'msg'
,
$ret
[
'msg'
]);
return
MyView
();
}
/**
...
...
app/common.php
浏览文件 @
ab6b4170
...
...
@@ -1988,6 +1988,7 @@ function CurlPost($url, $post, $is_json = false, $timeout = 30)
curl_setopt
(
$ch
,
CURLOPT_IPRESOLVE
,
CURL_IPRESOLVE_V4
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
false
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYHOST
,
false
);
curl_setopt
(
$ch
,
CURLOPT_FOLLOWLOCATION
,
true
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
// 是否 json
...
...
app/index/controller/Plugins.php
浏览文件 @
ab6b4170
...
...
@@ -10,6 +10,7 @@
// +----------------------------------------------------------------------
namespace
app\index\controller
;
use
app\service\ApiService
;
use
app\service\PluginsService
;
use
app\service\ResourcesService
;
...
...
@@ -84,19 +85,22 @@ class Plugins extends Common
// 调用
$ret
=
PluginsService
::
PluginsControlCall
(
$pluginsname
,
$pluginscontrol
,
$pluginsaction
,
'index'
,
$params
);
// ajax 返回的都是数组、使用统一api返回处理
if
(
IS_AJAX
)
{
return
ApiService
::
ApiDataReturn
(
$ret
[
'data'
]);
}
if
(
$ret
[
'code'
]
==
0
)
{
// 默认则是视图内容
return
$ret
[
'data'
];
}
// 调用失败
if
(
IS_AJAX
)
{
return
$ret
;
}
else
{
MyViewAssign
(
'msg'
,
$ret
[
'msg'
]);
return
MyView
(
'public/tips_error'
);
}
MyViewAssign
(
'msg'
,
$ret
[
'msg'
]);
return
MyView
();
}
/**
...
...
app/service/PluginsUpgradeService.php
浏览文件 @
ab6b4170
...
...
@@ -30,7 +30,7 @@ class PluginsUpgradeService
public
static
$params
;
// 远程插件更新接口
public
static
$store_plugins_upgrade_url
=
'https://store.shopxo.net/
index.php?s=/api/
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginsupgradeurl'
;
public
static
$store_plugins_upgrade_url
=
'https://store.shopxo.net/
api.php?s=
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginsupgradeurl'
;
/**
* 更新入口
...
...
app/service/StoreService.php
浏览文件 @
ab6b4170
...
...
@@ -22,16 +22,16 @@ use app\service\ConfigService;
class
StoreService
{
// 远程信息接口
public
static
$store_site_info_url
=
'https://store.shopxo.net/
index.php?s=/api/
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=siteinfo'
;
public
static
$store_site_info_url
=
'https://store.shopxo.net/
api.php?s=
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=siteinfo'
;
// 远程检查更新接口
public
static
$store_inspect_upgrade_url
=
'https://store.shopxo.net/
index.php?s=/api/
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=inspectupgrade'
;
public
static
$store_inspect_upgrade_url
=
'https://store.shopxo.net/
api.php?s=
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=inspectupgrade'
;
// 远程插件安全合法校验接口
public
static
$store_plugins_legal_check_url
=
'https://store.shopxo.net/
index.php?s=/api/
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginslegalcheck'
;
public
static
$store_plugins_legal_check_url
=
'https://store.shopxo.net/
api.php?s=
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginslegalcheck'
;
// 远程插件更新信息接口
public
static
$store_plugins_upgrade_info_url
=
'https://store.shopxo.net/
index.php?s=/api/
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginsupgradeinfo'
;
public
static
$store_plugins_upgrade_info_url
=
'https://store.shopxo.net/
api.php?s=
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=pluginsupgradeinfo'
;
// 站点商店数据缓存key
public
static
$site_store_info_key
=
'admin_site_store_info_data'
;
...
...
app/service/SystemUpgradeService.php
浏览文件 @
ab6b4170
...
...
@@ -26,7 +26,7 @@ class SystemUpgradeService
public
static
$params
;
// 远程系统更新接口
public
static
$store_plugins_upgrade_url
=
'https://store.shopxo.net/
index.php?s=/api/
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=systemsupgradeurl'
;
public
static
$store_plugins_upgrade_url
=
'https://store.shopxo.net/
api.php?s=
plugins/index&pluginsname=store&pluginscontrol=index&pluginsaction=systemsupgradeurl'
;
// session key
public
static
$package_url_key
=
'package_url_key'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录