立即注册  找回密码
 立即注册
CeraNetworksBGVM服务器主机交流会员请立即修改密码Sharktech防护
查看: 49|回复: 5

大厂图床接口 六间房

[复制链接]

大厂图床接口 六间房

[复制链接]

125

主题

612

回帖

2537

积分

金牌会员

积分
2537
Typeboom

125

主题

612

回帖

2537

积分

金牌会员

积分
2537
2024-11-24 23:19:17 | 显示全部楼层 |阅读模式
本帖最后由 Typeboom 于 2024-11-24 23:21 编辑
[ol]
  •    let form = new FormData();
  •                     form.append('file', fs.createReadStream(img.path), img.name);
  •                     form.append('pid', `${1001 + randomInt(8)}`);
  •                     form.append('size', 'c6');
  •                     form.append('callbackUrl', 'https://v.6.cn/profile/transferStation.html');
  •                     form.append('callbackFun', `window.parent.${randomUUID().split('-')[0]}`);
  •                     let upload = await utils.fetchWithTimeout(`https://pic.v.6.cn/api/uploadForGeneral.php`, {
  •                         method: 'POST',
  •                         headers: {
  •                             ...form.getHeaders()
  •                         },
  •                         body: form,
  •                         redirect: 'manual',
  •                     }, 10 * 1000)
  •                     if (!upload.headers.get('location')) {
  •                         throw new Error
  •                     }
  •                     upload = JSON.parse(upload.headers.get('location').split('json=')[1]);
  •                     if (upload.flag !== '001') {
  •                         throw new Error
  •                     }
  •                 console.log(upload.content.url.link)               
  • [/ol]复制代码



  • 本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    ×
    回复

    使用道具 举报

    28

    主题

    880

    回帖

    2524

    积分

    金牌会员

    积分
    2524
    yrj

    28

    主题

    880

    回帖

    2524

    积分

    金牌会员

    积分
    2524
    2024-11-25 00:24:13 | 显示全部楼层
    六间房还活着呢
    回复

    使用道具 举报

    2

    主题

    181

    回帖

    576

    积分

    高级会员

    积分
    576
    songsong

    2

    主题

    181

    回帖

    576

    积分

    高级会员

    积分
    576
    2024-11-25 00:42:47 | 显示全部楼层
    死去的记忆在攻击我
    回复

    使用道具 举报

    0

    主题

    160

    回帖

    394

    积分

    中级会员

    积分
    394
    Zhcn

    0

    主题

    160

    回帖

    394

    积分

    中级会员

    积分
    394
    2024-11-25 00:43:12 | 显示全部楼层
    真乃神人也
    回复

    使用道具 举报

    37

    主题

    471

    回帖

    2016

    积分

    金牌会员

    积分
    2016
    forg

    37

    主题

    471

    回帖

    2016

    积分

    金牌会员

    积分
    2016
    2024-11-25 01:43:17 | 显示全部楼层
    我回到了上古时代嘛
    回复

    使用道具 举报

    569

    主题

    1万

    回帖

    3万

    积分

    论坛元老

    积分
    30323
    louiejordan

    569

    主题

    1万

    回帖

    3万

    积分

    论坛元老

    积分
    30323
    2024-11-25 01:52:19 | 显示全部楼层
    六间房???多么古老的名字!
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|小黑屋|HS2V主机综合交流论坛

    GMT+8, 2025-3-17 03:03 , Processed in 0.019692 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表