From 94fc4c9b85042a5f7b2d7a33505aaee0dca342f2 Mon Sep 17 00:00:00 2001 From: hdm Date: Wed, 27 Jul 2022 17:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85callback=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/home/controller/Login.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/app/home/controller/Login.php b/app/home/controller/Login.php index 8e6aa89..a7f359a 100644 --- a/app/home/controller/Login.php +++ b/app/home/controller/Login.php @@ -27,26 +27,6 @@ class Login return View(); } - //系统安装提交 - function install_ajax() - { - $url = $_SERVER["HTTP_REFERER"]; //获取完整的来路URL - $str = str_replace("http://","",$url); //去掉http:// - $str = str_replace("https://","",$str); //去掉https:// - $strdomain = explode("/",$str); // 以“/”分开成数组 - $domain = $strdomain[0]; //取第一个“/”以前的字符 - $name = '系统'; - if (!empty($_GET['name'])) { - $name = $_GET['name']; - } - add_user_log('install', $name,0,['domain'=>$domain]); - if (!empty($_GET['callback'])) { - return $_GET['callback'] . '("install ok!")'; // jsonp - } - else{ - return to_assign(1, 'install ok!'); - } - } //提交登录 public function login_submit() {