From 41e6388fdb02a9a480f7c8cbf2dd616cda70d7fc Mon Sep 17 00:00:00 2001 From: ankio Date: Fri, 6 Dec 2024 09:37:23 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20(=E5=BE=AE=E4=BF=A1=E8=BD=AC=E8=B4=A6):?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E8=BD=AC=E8=B4=A6=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF=20https:?= =?UTF-8?q?//github.com/AutoAccountingOrg/AutoAccounting/issues/812?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在转账类型判断中,添加了 `isSend` 字段的检查,以确保在特定情况下返回 `null`,避免错误的转账类型记录。 --- .../\345\276\256\344\277\241\350\275\254\350\264\246/main.js" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\350\275\254\350\264\246/main.js" "b/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\350\275\254\350\264\246/main.js" index d4c7779..b3bf026 100644 --- "a/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\350\275\254\350\264\246/main.js" +++ "b/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\350\275\254\350\264\246/main.js" @@ -11,7 +11,7 @@ function analyzeFromCard(json){ let billType = BillType.Expend; let channel = "付款"; let subType = parseInt(info.paysubtype); - let isSend = json.isSend; + let isSend = parseInt(json.isSend); if (subType === 4){ if (isSend ===1)return null; billType = BillType.Income;