diff --git "a/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/main.js" "b/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/main.js" index 626bcaa..169e6d9 100644 --- "a/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/main.js" +++ "b/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/main.js" @@ -68,6 +68,7 @@ const rules =[ }, ], [ + //使用零钱支付¥17.30\n车牌宁A·T4386\n交易状态支付成功,对方已收款 /使用(.*?)支付¥(\d+\.\d{2})\n交易(状态|狀態)支付成功,([对對])方已收款/, (match,t,item) => { let [, accountNameFrom, money] = match; @@ -84,6 +85,25 @@ const rules =[ '微信[微信支付-付款]' ); }, + ], + [ + //使用零钱支付¥17.30\n车牌宁A·T4386\n交易状态支付成功,对方已收款 + /使用(.*?)支付¥(\d+\.\d{2})\n车牌(.*?)\n交易(状态|狀態)支付成功,([对對])方已收款/, + (match,t,item) => { + let [, accountNameFrom, money,shopItem] = match; + return new RuleObject( + BillType.Expend, + toFloat(money), + item.display_name, + shopItem, + accountNameFrom, + '', + 0.0, + Currency['人民币'], + t, + '微信[微信支付-付款]' + ); + }, ], ]; diff --git "a/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/main.test.js" "b/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/main.test.js" index 6b3c71d..73df5c8 100644 --- "a/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/main.test.js" +++ "b/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/main.test.js" @@ -54,4 +54,16 @@ test('微信支付扫码付款', () => "time": 1727788529055, "channel": '微信[微信支付-付款]', }, + { + "type": "Expend", + "money": 17.3, + "fee": 0, + "shopName": '冰达4386马金峰', + "shopItem": '宁A·T4386', + "accountNameFrom": '零钱', + "accountNameTo": '', + "currency": 'CNY', + "time": 1731045490128, + "channel": '微信[微信支付-付款]', + }, ])); diff --git "a/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/tests/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\344\273\230\346\254\2765.txt" "b/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/tests/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\344\273\230\346\254\2765.txt" new file mode 100644 index 0000000..a2fb18c --- /dev/null +++ "b/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\346\224\257\344\273\230/tests/\345\276\256\344\277\241\346\224\257\344\273\230\346\211\253\347\240\201\344\273\230\346\254\2765.txt" @@ -0,0 +1,16 @@ +{ +"mMap": { +"description": "使用零钱支付¥17.30\n车牌宁A·T4386\n交易状态支付成功,对方已收款", +"source": "微信支付", +"type": 5, +"appId": "", +"msgId": 99064, +"title": "已支付¥17.30", +"display_name": "冰达4386马金峰", +"hookerUser": "景旺", +"cachedPayTools": "零钱", +"cachedPayMoney": "¥17.30", +"cachedPayShop": "付款给冰达4386马金峰(**娟)", +"t": 1731045490128 +} +}