作者 郭鑫
1 个管道 的构建 通过 耗费 0 秒

测试问题修改

@@ -60,14 +60,8 @@ class WxloginController extends HomeBaseController @@ -60,14 +60,8 @@ class WxloginController extends HomeBaseController
60 $uid = Session::get('uid'); 60 $uid = Session::get('uid');
61 $id = Db::name('Member')->where(array('id'=>$uid,'status'=>1))->value('id'); 61 $id = Db::name('Member')->where(array('id'=>$uid,'status'=>1))->value('id');
62 if(!$id){ 62 if(!$id){
63 - echo "<pre/>";  
64 - print_r('55');  
65 - die;  
66 $this->OAuth($rediUrl); 63 $this->OAuth($rediUrl);
67 }else{ 64 }else{
68 - echo "<pre/>";  
69 - print_r(66);  
70 - die;  
71 $url = $rediUrl; 65 $url = $rediUrl;
72 } 66 }
73 } 67 }
@@ -133,6 +127,10 @@ class WxloginController extends HomeBaseController @@ -133,6 +127,10 @@ class WxloginController extends HomeBaseController
133 } 127 }
134 }else{ 128 }else{
135 $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".Config::get('WX_APPID')."&redirect_uri=" . $redirect_uri . "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"; 129 $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".Config::get('WX_APPID')."&redirect_uri=" . $redirect_uri . "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
  130 + echo "<pre/>";
  131 + print_r(111111111);
  132 + print_r($redirect_uri);
  133 + die;
136 Header("Location: $url"); 134 Header("Location: $url");
137 exit; 135 exit;
138 } 136 }