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

登录

@@ -124,9 +124,12 @@ class WxloginController extends HomeBaseController @@ -124,9 +124,12 @@ class WxloginController extends HomeBaseController
124 exit; 124 exit;
125 } 125 }
126 }else{ 126 }else{
  127 + $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";
127 $a['a'] = 3; 128 $a['a'] = 3;
  129 + $a['c'] = $url;
  130 + $a['e'] = Config::get('WX_APPID');
  131 + $a['f'] = $redirect_uri;
128 Db::name('Test')->insertGetId($a); 132 Db::name('Test')->insertGetId($a);
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 Header("Location: $url"); 133 Header("Location: $url");
131 exit; 134 exit;
132 } 135 }