正在显示
1 个修改的文件
包含
4 行增加
和
6 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论