stanley-king пре 8 година
родитељ
комит
fe9333547c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      mobile/api/wxLogin/index.php

+ 2 - 2
mobile/api/wxLogin/index.php

@@ -11,6 +11,6 @@ $_SESSION['state'] = md5(rand(111111, 99999999));
 
 $url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='.appID.'&redirect_uri='.urlencode(BACKURL).'&response_type=code&scope=snsapi_userinfo&state='.$_SESSION['state'].'#wechat_redirect';
 //跳转即可
-header('location:'.$url);
+Log::record("url={$url}",Log::DEBUG);
 
-Log::record("url={$url}",Log::DEBUG);
+header('location:'.$url);