🐛 Fix: fix upload failed error of aliyun upyun and github

This commit is contained in:
萌萌哒赫萝 2023-08-31 07:21:14 -07:00
parent 0eb7bacb84
commit 320ac73b90
3 changed files with 6 additions and 6 deletions

View File

@ -68,7 +68,7 @@
"mitt": "^3.0.1", "mitt": "^3.0.1",
"node-ssh-no-cpu-features": "^1.0.1", "node-ssh-no-cpu-features": "^1.0.1",
"nodejs-file-downloader": "^4.12.1", "nodejs-file-downloader": "^4.12.1",
"piclist": "^1.0.0", "piclist": "^1.0.1",
"pinia": "^2.1.6", "pinia": "^2.1.6",
"pinia-plugin-persistedstate": "^3.2.0", "pinia-plugin-persistedstate": "^3.2.0",
"qiniu": "^7.9.0", "qiniu": "^7.9.0",

View File

@ -59,7 +59,7 @@ class UpyunApi {
} }
getAntiLeechParam (key: string): string { getAntiLeechParam (key: string): string {
const uri = `/${encodeURIComponent(key)}`.replace(/%2F/g, '/').replace(/^\/+/g, '/') const uri = `/${key}`.replace(/%2F/g, '/').replace(/^\/+/g, '/')
const now = Math.round(new Date().getTime() / 1000) const now = Math.round(new Date().getTime() / 1000)
const expire = this.expireTime ? now + parseInt(this.expireTime.toString(), 10) : now + 1800 const expire = this.expireTime ? now + parseInt(this.expireTime.toString(), 10) : now + 1800
const sign = md5(`${this.antiLeechToken}&${expire}&${uri}`, 'hex') const sign = md5(`${this.antiLeechToken}&${expire}&${uri}`, 'hex')

View File

@ -12488,10 +12488,10 @@ performance-now@^2.1.0:
resolved "https://registry.npmmirror.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" resolved "https://registry.npmmirror.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==
piclist@^1.0.0: piclist@^1.0.1:
version "1.0.0" version "1.0.1"
resolved "https://registry.npmjs.org/piclist/-/piclist-1.0.0.tgz#71674a3905e77c9325d5cda6529e025253df15b0" resolved "https://registry.npmjs.org/piclist/-/piclist-1.0.1.tgz#6d15ec44393de38b32ba34d041511324ec7dda55"
integrity sha512-8KP+9gZOCZpQOZIRIFVO/WeWv8kjY0GOo3bTskF8BAaQfUl6lJi2AkG435nVDSfKidt14v53ZfohNn3jpXX9Hg== integrity sha512-c68ijE5Gj3E29KEc1B6F75pluldHLJvkvYmoWhNpYg1hOXGTlxepZCZm8Wp/a9NVjT8jh3zfX1fmpbFGjpOOug==
dependencies: dependencies:
"@picgo/i18n" "^1.0.0" "@picgo/i18n" "^1.0.0"
"@picgo/store" "^2.0.4" "@picgo/store" "^2.0.4"