wesmiler пре 4 година
родитељ
комит
58a939952f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Services/WechatService.php

+ 1 - 1
app/Services/WechatService.php

@@ -157,7 +157,7 @@ class WechatService extends BaseService
     public static function makeRedirectUrl($url)
     {
         $appid = WechatService::getConfigs('wx_appid');
-        return sprintf(self::$apiUrl['auth'], $appid, $url, 'snsapi_userinfo');
+        return sprintf(self::$apiUrl['auth'], $appid, urlencode($url), 'snsapi_userinfo');
     }
 
     /**