This commit is contained in:
xiaojunnuo
2026-04-26 13:45:08 +08:00
parent 53782cbf49
commit 1460cb9ac1
@@ -241,6 +241,7 @@ token=md5(zhangsan + 5dh232kfg!* + 1554691950854)=cfcd208495d565ef66e7dff9f98764
try {
const contentType = headers['content-type'] || '';
// 判断是否是 GB2312/GBK 编码
//@ts-ignore
if (contentType.includes('gb2312') || contentType.includes('gbk')) {
// 使用 iconv-lite 解码
data = iconv.decode(data, 'gb2312');