|
|
|
@ -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"]);
|
|
|
|
|