wesmiler 4 лет назад
Родитель
Сommit
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');
     }
 
     /**