NOTICE/通知

My old PGP key with fingerprint 0xDDDF3D48 is NO LONGER VALID and CANNOT BE TRUSTED since 2024/09/28 (incl.) and a new post will confirm the new one.
我的指纹为 0xDDDF3D48 的旧 PGP 密钥已于 2024/09/28(包含当日)失效并不再可信。新可信指纹稍后更新。
0x06629B814A16551B is the new trusted key since 2024/09/29 (incl.)
自 2024/09/29 开始可信的密钥是 0x06629B814A16551B

嗨!我是 Cubik 👋





   

 

🎉 致谢

感谢 @JohnsonRan 为我提供的网络与计算资源

特别感谢下列的赞助者们!你们的支持将会使我走得更远!

赞助者

如果你也希望你的名字出现在这里,可以在 GitHubBuy me a coffee 赞助我!

 

@[email protected] @[email protected]
'); } }, onLoadSuccess: (el) => { if (el) { $(el).find('.loading-wrap').remove(); } }, onLoadFailure: (el) => { if (el) { $(el).find('.loading-wrap svg').remove(); $(el).find('.loading-wrap').append(''); $(el).find('.loading-wrap').addClass('error'); } }, request: (el, url, callback, onFailure) => { let retryTimes = 3; utils.onLoading(el); function req() { return new Promise((resolve, reject) => { let status = 0; // 0 等待 1 完成 2 超时 let timer = setTimeout(() => { if (status === 0) { status = 2; timer = null; reject('请求超时'); if (retryTimes == 0) { onFailure(); } } }, 5000); fetch(url).then(function(response) { if (status !== 2) { clearTimeout(timer); resolve(response); timer = null; status = 1; } if (response.ok) { return response.json(); } throw new Error('Network response was not ok.'); }).then(function(data) { retryTimes = 0; utils.onLoadSuccess(el); callback(data); }).catch(function(error) { if (retryTimes > 0) { retryTimes -= 1; setTimeout(() => { req(); }, 5000); } else { utils.onLoadFailure(el); onFailure(); } }); }); } req(); }, };