请求方式:
https://vip.video.qq.com/fcgi-bin/comm_cgi?name=short_url&need_short_url=1&url=长链接
返回结果:
QZOutputJson=({
“msg” : “非白名单域名!”,
“qrcode” : “”,
“ret” : -11013,
“short_url” : “”
}
);
若链接前加上www.qq.com
https://vip.video.qq.com/fcgi-bin/comm_cgi?name=short_url&need_short_url=1&url=http://www.qq.com.104a.cn
返回结果:
QZOutputJson=({
“msg” : “ok”,
“qrcode” : “”,
“ret” : 0,
“short_url” : “https://url.cn/ChREpfwx”
}
);
得出,
一:
找一个域名解析前缀为a.qq.com
比如二级域名 a.qq.com.xxxxxxx.cn
用这个站点搭建一个站点负责跳转
请求 https://vip.video.qq.com/fcgi-bin/comm_cgi?name=short_url&need_short_url=1&url=http://a.qq.com.xxxxxxx.cn/?url=http://104a.cn
http://a.qq.com.xxxxxxx.cn/?url=http://104a.cn
只需要获取到GET的url参数名 让后直接301跳即可
二:
解析一个域名解析前缀为www.qq.com.xxxxxx.cn
将解析后的域名绑定到指定服务器,自接使用就行。
请求https://vip.video.qq.com/fcgi-bin/comm_cgi?name=short_url&need_short_url=1&url=www.qq.com.104a.cn