xssplatform icon indicating copy to clipboard operation
xssplatform copied to clipboard

查看代码时加载缓慢,是因为生成短链接的接口失效请求长时间无法得到响应,修复方式如下

Open pasalai opened this issue 3 years ago • 3 comments

问题

查看代码时加载缓慢,是因为生成短链接的接口失效请求长时间无法得到响应

修复方式

source/function.php line 413 的函数LongUrltoShortUrl()修改成如下:

function LongUrltoShortUrl($longurl = '')
{
    //短网址API系统http://dwz.xwteam.cn/
	//用户名 flzx3qc
	//密码 flzx3qc14yhl9t
	//Token DJkNjM4MTE5N
    $Url = "http://api.xwteam.cn/?s=App.Dwz.Suoim&token=DJkNjM4MTE5N&url=" . $longurl;

    $Url = vita_get_url_content($Url);
    $shortUrl = json_decode($Url, true);
    return $shortUrl['data']['Shortlink'];
}

pasalai avatar Sep 04 '21 08:09 pasalai

image 依旧有问题= =

LEEcloudz avatar Sep 07 '21 09:09 LEEcloudz

把source/function.php第420行url的https://改成http://就好了,这个网站证书有点问题

pasalai avatar Sep 10 '21 08:09 pasalai

问题解决了,谢谢!

LEEcloudz avatar Sep 10 '21 08:09 LEEcloudz