浏览代码

wesmiler 报恩寺项目

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');
     }
 
     /**