登录sdk,跳转至购买超级签,无需重新登陆

master
zhengyongxing 5 years ago
parent 1626123074
commit 4e06af0acf

@ -48,6 +48,23 @@ class SsgController extends BaseController {
}
public function home(){
// $users = session("user_auth");
// var_dump($users);die();
if (I('user_token')) {
$userToker = I('user_token');
$where['user_token'] = $userToker;
$isToken = M('user','tab_')->field('id as user_id,account,nickname')->where($where)->find();
if ($isToken) {
session("user_auth",$isToken);
$this->redirect("Ssg/index");
} else {
$this->redirect("Ssg/login");
}
}
//获取客服qq
$appqq = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value'];
$promoteId = I("promote_id", 0);

Loading…
Cancel
Save