发送邮件正文图片链接改为内置附件

This commit is contained in:
eoao
2025-11-06 22:55:00 +08:00
parent 4d00f0aeb7
commit 6cd3dcb7ef
10 changed files with 186 additions and 39 deletions

View File

@@ -14,6 +14,10 @@ const fileUtils = {
return hashArray.map(b => b.toString(16).padStart(2, '0')).join('');
},
base64ToDataStr(base64) {
return base64.split(',')[1] || base64;
},
base64ToUint8Array(base64) {
const binaryStr = atob(base64);
const len = binaryStr.length;