新增开发日志,修改cms描述,api请求接口新增操作日志,新增能jsonp返回安装结果

This commit is contained in:
hdm 2021-08-24 10:47:17 +08:00
parent c0835e52e4
commit 4e1ecd1718

View File

@ -34,7 +34,11 @@ class Login
//系统安装提交
function install_ajax()
{
add_user_log('install', '系统');
$url = $_SERVER["HTTP_REFERER"]; //获取完整的来路URL
$str = str_replace("http://","",$url); //去掉http://
$strdomain = explode("/",$str); // 以“/”分开成数组
$domain = $strdomain[0]; //取第一个“/”以前的字符
add_user_log('install', '系统',0,['domain'=>$domain]);
if (!empty($_GET['callback'])) {
return $_GET['callback'] . '("install ok!")'; // jsonp
}