master
sunke 5 years ago
parent 177d8b4538
commit 0b82acf19d

@ -117,9 +117,9 @@ class IndexController extends HomeController
])->find(); ])->find();
if($promote) { if($promote) {
$loginrecord['promote_id'] = get_pid(); $loginrecord['promote_id'] = get_pid();
$loginrecord['account'] = $_POST['account']; $loginrecord['account'] = $promote['account'];
$loginrecord['client_ip'] = $_SERVER['REMOTE_ADDR']; $loginrecord['client_ip'] = $_SERVER['REMOTE_ADDR'];
$loginrecord['login_type'] = 1; $loginrecord['login_type'] = 2;
$loginrecord['create_time'] = time(); $loginrecord['create_time'] = time();
M("promote_login_record", "tab_")->add($loginrecord); M("promote_login_record", "tab_")->add($loginrecord);
setcookie('login_phone', $mobile, time() + 3600 * 10000, $_SERVER["HTTP_HOST"]); setcookie('login_phone', $mobile, time() + 3600 * 10000, $_SERVER["HTTP_HOST"]);

@ -25,7 +25,7 @@
<span class="input-group-addon"><i class="input_icon input_icon_barcode"></i></span> <span class="input-group-addon"><i class="input_icon input_icon_barcode"></i></span>
<input class="form-control" name="code" id="code" placeholder="短信验证码" autocomplete="off" maxlength="6"> <input class="form-control" name="code" id="code" placeholder="短信验证码" autocomplete="off" maxlength="6">
</div> </div>
<div class="f-wsn"><input id="sendtelCode" class="btn btn_primary" value="发送验证码" style="width:130px;margin-left:20px" title="" target-form="paw_info"> </div> <div class="f-wsn"><input id="sendtelCode" class="btn btn_primary" readonly onfocus="this.blur()" value="发送验证码" style="width:130px;margin-left:20px" title="" target-form="paw_info"> </div>
<div class="input-status"></div> <div class="input-status"></div>
</div> </div>
<div class="form-group ff clearfix"> <div class="form-group ff clearfix">

Loading…
Cancel
Save