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