Files
NapCatQQ/.pnpm-store/v3/files/c8/0f4bd0658a87a99d208000556abc63786e33c9c17763544478df915a1de4fe7685047c53744d3ea88f641d8ed8a9823a950e09044c41f17daf6de99519d67b
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

20 lines
412 B
Plaintext

/**
* @file base64字符串转数组
* @author mengke01(kekee000@gmail.com)
*/
/**
* base64字符串转数组
*
* @param {string} base64 base64字符串
* @return {Array} 数组
*/
export default function base642bytes(base64) {
const str = atob(base64);
const result = [];
for (let i = 0, l = str.length; i < l; i++) {
result.push(str[i].charCodeAt(0));
}
return result;
}