Explorar el Código

wesmiler 报恩寺项目

wesmiler hace 4 años
padre
commit
58a939952f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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');
     }
 
     /**