修复:ABDM 的锁名称

This commit is contained in:
Hmjz100
2026-04-08 10:07:22 +08:00
parent 7f46cbaeaa
commit 3b1d677ff3

View File

@@ -953,8 +953,8 @@
* @returns {Promise<"success"|"fail">} 发送态结果
*/
async sendLinkToABDM(link, filename, headers) {
if (!this.sendLinkToBitcomet.lock) this.sendLinkToBitcomet.lock = Promise.resolve();
return this.sendLinkToBitcomet.lock = this.sendLinkToBitcomet.lock.then(async () => {
if (!this.sendLinkToABDM.lock) this.sendLinkToABDM.lock = Promise.resolve();
return this.sendLinkToABDM.lock = this.sendLinkToABDM.lock.then(async () => {
let newHeaders = {};
for (let key in headers) {
newHeaders[key.toLowerCase().split("-").map(word => word.charAt(0).toUpperCase() + word.slice(1)).join("-")] = headers[key];