|
|
|
@ -124,9 +124,9 @@ class IndexController extends HomeController
|
|
|
|
|
M("promote_login_record", "tab_")->add($loginrecord);
|
|
|
|
|
setcookie('login_phone', $mobile, time() + 3600 * 10000, $_SERVER["HTTP_HOST"]);
|
|
|
|
|
$promote1 = new PromoteApi();
|
|
|
|
|
$result = $promote1->login($promote['account'], $promote['password']);
|
|
|
|
|
$result = $promote1->login_phone($promote['account']);
|
|
|
|
|
if ($result) {
|
|
|
|
|
$this->success('登录成功!', U('Promote/index'));
|
|
|
|
|
$this->ajaxReturn(array("status" => 1, "msg" => "登录成功", 'url' => U('Promote/index')));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|