refactor: 获取rkey后进行检查rkey是否正确

This commit is contained in:
linyuchen
2024-04-30 19:26:51 +08:00
parent 297c495df9
commit de4d901412
4 changed files with 108 additions and 126 deletions

12
test/check_image_url.js Normal file
View File

@@ -0,0 +1,12 @@
import http from 'https'
function checkUrl(imageUrl) {
http.get(imageUrl, response => {
console.log(response.statusCode)
}).on('error', e => {
console.log(e)
})
}
checkUrl('https://gchat.qpic.cn/download?appid=1407&fileid=CgoxMzMyNTI0MjIxEhRrdaUgQP5MjweWa4uR8pviUDaGQhjcxQUg_wooiYTj39fphQNQgL2jAQ&spec=0&rkey=CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64')
checkUrl('https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxMzMyNTI0MjIxEhRrdaUgQP5MjweWa4uR8pviUDaGQhjcxQUg_wooiYTj39fphQNQgL2jAQ&spec=0&rkey=CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64')