فهرست منبع

debug wx author

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);