From 9477e31853a37841be79015033be9b18885dc381 Mon Sep 17 00:00:00 2001 From: cyc Date: Thu, 13 Jun 2019 10:57:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9value=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E5=A4=B1=E8=B4=A5=E5=90=8E=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E7=9A=84=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/dingmail/controllers/index.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/webht/third_party/dingmail/controllers/index.php b/webht/third_party/dingmail/controllers/index.php index 02f0b382..1475adca 100644 --- a/webht/third_party/dingmail/controllers/index.php +++ b/webht/third_party/dingmail/controllers/index.php @@ -10,6 +10,14 @@ class Index extends CI_Controller { $this->load->helper('cookie'); } + public function test_session(){ + $unionid = 'JbHXZ0DtTj2fOwkk4nfLpgiEiE'; + $user = $this->ding_value_model->get_dingding_user($unionid); + //$this->session->set_userdata('dingding_user_info',$user); + //echo get_cookie('ci_session'); + print_r($this->session->userdata('dingding_user_info')); + } + public function index($unionid = null,$type = null){ if(get_cookie('dingunionid') == ''){ redirect('http://www.mycht.cn/info.php/apps/dinglogin/login/?returnurl=http://www.mycht.cn/webht.php/apps/dingmail/index/'); @@ -74,7 +82,7 @@ class Index extends CI_Controller { //value邮件页面 public function mail_index(){ if($this->session->userdata('dingding_user_info') === false){ - redirect('http://www.mycht.cn/info.php/apps/dinglogin/login/?returnurl=http://www.mycht.cn/webht.php/apps/dingmail/index/'); + redirect('http://www.mycht.cn/webht.php/apps/dingmail/index/'); }else{ //print_r($this->session->userdata('dingding_user_info')); $this->load->view('mail'); @@ -289,7 +297,7 @@ class Index extends CI_Controller { if($this->session->userdata('dingding_user_info') === false){ $this->session->set_userdata('identify',$identify); $this->session->set_userdata('mail_type',$type); - redirect('http://www.mycht.cn/info.php/apps/dinglogin/login/?returnurl=http://www.mycht.cn/webht.php/apps/dingmail/index/'); + redirect('http://www.mycht.cn/webht.php/apps/dingmail/index/'); }else{ $user_info = $this->session->userdata('dingding_user_info'); if(!empty($user_info)){ @@ -398,7 +406,7 @@ class Index extends CI_Controller { //点赞排行榜 public function rank_person() { if($this->session->userdata('dingding_user_info') === false){ - redirect('http://www.mycht.cn/info.php/apps/dinglogin/login/?returnurl=http://www.mycht.cn/webht.php/apps/dingmail/index/'); + redirect('http://www.mycht.cn/webht.php/apps/dingmail/index/'); }else{ $data = array(); $user_info = $this->session->userdata('dingding_user_info');