Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pasalai opened this issue Sep 4, 2021 · 3 comments

Comments

@pasalai
Copy link

pasalai commented Sep 4, 2021

问题

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

修复方式

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'];
}
This was referenced Sep 4, 2021
@LEEcloudz
Copy link

image
依旧有问题= =

@pasalai
Copy link
Author

pasalai commented Sep 10, 2021

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

@LEEcloudz
Copy link

问题解决了,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants