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

master
zhengyongxing 5 years ago
parent 286febdff6
commit 8e8e59c61c

@ -48,6 +48,22 @@ class SsgController extends BaseController {
}
public function home(){
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