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