From 0b82acf19d79b1c85309861009feffc0dbeff3bf Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Wed, 6 May 2020 16:21:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/IndexController.class.php | 4 ++-- Application/Home/View/default/Index/phoneLogin.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Home/Controller/IndexController.class.php b/Application/Home/Controller/IndexController.class.php index adf2ac5e8..260539ffc 100644 --- a/Application/Home/Controller/IndexController.class.php +++ b/Application/Home/Controller/IndexController.class.php @@ -117,9 +117,9 @@ class IndexController extends HomeController ])->find(); if($promote) { $loginrecord['promote_id'] = get_pid(); - $loginrecord['account'] = $_POST['account']; + $loginrecord['account'] = $promote['account']; $loginrecord['client_ip'] = $_SERVER['REMOTE_ADDR']; - $loginrecord['login_type'] = 1; + $loginrecord['login_type'] = 2; $loginrecord['create_time'] = time(); M("promote_login_record", "tab_")->add($loginrecord); setcookie('login_phone', $mobile, time() + 3600 * 10000, $_SERVER["HTTP_HOST"]); diff --git a/Application/Home/View/default/Index/phoneLogin.html b/Application/Home/View/default/Index/phoneLogin.html index 912dd1adb..4c8d7c648 100644 --- a/Application/Home/View/default/Index/phoneLogin.html +++ b/Application/Home/View/default/Index/phoneLogin.html @@ -25,7 +25,7 @@ -
+