Skip to content

Commit

Permalink
🐛 (微信转账): 修复转账类型判断逻辑错误 AutoAccountingOrg/AutoAccounting#812
Browse files Browse the repository at this point in the history
在转账类型判断中,添加了 `isSend` 字段的检查,以确保在特定情况下返回 `null`,避免错误的转账类型记录。
  • Loading branch information
AnkioTomas committed Dec 6, 2024
1 parent 8ffd074 commit 41e6388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rule/com.tencent.mm/app/微信转账/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 41e6388

Please sign in to comment.