Typeboom 发表于 2024-12-8 16:19:21

新的大厂图床

https://vos.v5kf.com/public/resource/10000/c84d63e4-3287-69ca-ccdf-0c8c88000650


[*]    let ticket = await utils.fetchWithTimeout('https://chat.v5kf.com/public/webauth/v9', {
[*]                        method: "POST",
[*]                        headers: {
[*]                            'content-type': "application/json"
[*]                        },
[*]                        body: JSON.stringify({
[*]                            site: 10000,
[*]                            account: "271003008e9f",
[*]                            visitor: randomUUID(),
[*]                            vip: 0,
[*]                            gender: 0,
[*]                            nickname: ""
[*]                        })
[*]                  }).then(r => r.json());
[*]
[*]                  if (!ticket.authorization) {
[*]                        throw new Error
[*]                  }
[*]
[*]                  let form = new FormData();
[*]                  form.append('file', fsc.createReadStream(img.path), img.name);
[*]
[*]                  let upload = await utils.fetchWithTimeout(`https://vos.v5kf.com/public/upload/`, {
[*]                        method: 'POST',
[*]                        headers: {
[*]                            "authorization": ticket.authorization,
[*]                            ...form.getHeaders()
[*]                        },
[*]                        body: form
[*]                  }, 10 * 1000).then(r => r.json());
[*]
[*]                  if (!upload.url) {
[*]                        throw new Error
[*]                  }
[*]
[*]                  console.log(upload.url)复制代码

jack晓峰 发表于 2024-12-8 16:38:30

这个应该用不了多久吧

kpxyyyy 发表于 2024-12-8 16:52:34


jack晓峰 发表于 2024-12-8 16:38

这个应该用不了多久吧
换算法了就用不了了
页: [1]
查看完整版本: 新的大厂图床