We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
备注设置导致解析异常
备注设置导致解析异常: # [商户名称] #[商户备注] 解析结果为: qianji://publicapi/addbill?&type=0&money=1.9&time=2023-07-26 19:39:51&catename=NotFound&catechoose=0&catetheme=auto&accountname=无账户&accountname2=无账户&shopAccount=北京快松果科技有限公司&shopRemark=松果出行订单扣款&reimbursement=false&fromApp=&rawAccount=零钱通&rawAccount2=&extraData=&fee=&timeStamp=1690371591000,发给钱迹的数据长这样,按理说下面的数据应该有的 缺少分类数据、账本信息,删除后正常
自动记账 3.3.4
[2023-07-27 09:26:56][自动记账:AppFragment]自动分类结果:单车电车.耗时: 4ms [2023-07-27 09:26:56][自动记账:AppFragment]自动分类结果:单车电车 [2023-07-27 09:26:56][自动记账:AppFragment]qianji://publicapi/addbill?&type=0&money=1.9&time=2023-07-26 19:39:51&catename=NotFound&catechoose=0&catetheme=auto&accountname=无账户&accountname2=无账户&shopAccount=北京快松果科技有限公司&shopRemark=松果出行订单扣款&reimbursement=false&fromApp=&rawAccount=零钱通&rawAccount2=&extraData=&fee=&timeStamp=1690371591000 [2023-07-27 09:26:56][js运行代码]function getCategory(shopName,shopRemark,type,hour,minute,money){const isInTimeInner=function(a,b,c,d){regT=/([01\b]\d|2[0-3]):([0-5]\d)/;const e=a.match(regT),f=b.match(regT);if(null==e||null==f||e.length<3||f.length<3)return!1;const g=parseInt(e[1],10),h=parseInt(f[1],10),i=parseInt(e[2],10),j=parseInt(f[2],10);return g>h?c===g&&d>=i||c>g||h>c||c===h&&j>=d:h>g?c===g&&d>=i||c>g&&h>c||c===h&&j>=d:g===h?j>i?c===g&&d>=i&&j>=d:i>j?c===g&&d>=i||j>=d||c!==g:i===j&&d===i&&c===g:void 0}; if(shopName.indexOf('北京快松果科技有限公司')!=-1 && shopRemark.indexOf('松果出行订单扣款')!=-1 && type == '支出' )return '单车电车';if(shopName.indexOf('北京快松果科技有限公司')!=-1 && shopRemark.indexOf('松果出行订单扣款')!=-1 && type == '支出' )return '测试'; return 'NotFound';} getCategory('北京快松果科技有限公司','松果出行订单扣款','支出',19,39,'1.9'); [2023-07-27 09:26:56][解析结果][松果出行订单扣款, 零钱通, 0, 1.90, , 北京快松果科技有限公司, , 2023年7月26日 19:39:51, 0] [2023-07-27 09:26:56][自动记账:AppFragment]com.tencent.mm 解析结果:松果出行订单扣款##零钱通##0##1.90####北京快松果科技有限公司####2023年7月26日 19:39:51##0.耗时: 10ms [2023-07-27 09:26:56][js运行代码]function getData(a){function b(a,b,c){var d,e,f,g,h,i,j;if("string"!=typeof b)return b;if(d="$|"!=c,"$|"==c&&(b+="$|"),-1!=b.indexOf(c)){for(e=b.split(c),f=0,g="",h=0;h<e.length;h++)try{if(i=e[h],-1!=e[h].indexOf("$")?(j=parseInt(e[h].replace("$","")),j<a.length&&(i=d?parseFloat(a[j].replace(",","")):a[j])):d&&(i=parseFloat(e[h].replace(",",""))),0==f){g=i,f=g;continue}f="$-"==c?g-i:"$+"==c?g+i:g||i,g=f}catch(k){console.log(k)}return f}return b}function c(a,b){var c,d,e;for(c=a.length-1;c>=1;c--)for(d="$"+c.toString(),e=a[c];-1!=b.indexOf(d);)b=b.replace(d,e);return b};var d,e,f,g,h,i;try{if(pattern=/Flag:11,Data:[., -(.), 当前状态, 支付成功, 支付时间, (.), 商品, (.), 商户全称, (.), 收单机构, (.), 支付方式, (.) , .]/,pattern.test(a)){for(d=pattern.exec(a),e="$3##$6##0##$1####$4####$2##0",f=e.split("##"),g="",h=0;h<f.length;h++)i=f[h],g+=-1!=i.indexOf("$+")?b(d,i,"$+")+"##":-1!=i.indexOf("$-")?b(d,i,"$-")+"##":-1!=i.indexOf("$|")?b(d,i,"$|")+"##":i+"##";return g=g.slice(0,g.length-2),c(d,g)}}catch(j){};return"undefined##undefined##undefined##undefined##undefined##undefined##undefined##undefined##0"}getData('Flag:11,Data:[松果出行订单扣款, -1.90, 当前状态, 支付成功, 支付时间, 2023年7月26日 19:39:51, 商品, 松果出行订单扣款, 商户全称, 北京快松果科技有限公司, 收单机构, 财付通支付科技有限公司, 支付方式, 零钱通 , 交易单号, 4200001944202307262816728680, 商家小程序 松果出行, 账单服务, 对订单有疑惑, 发起群收款, 在此商户的交易, 联系商家, 商家电话, 公众号, 本服务由财付通提供]'); [2023-07-27 09:24:01][自动记账:AppFragment]钱迹URL:qianji://publicapi/addbill?&type=0&money=1.9&remark=#北京快松果科技有限公司 # 松果出行订单扣款&showresult=0&time=2023-07-26 19:39:51&catename=单车电车&catechoose=0&catetheme=auto&bookname=自用账本&accountname=微信零钱 [2023-07-27 09:24:01][自动记账:AppFragment]再次获取cate:单车电车数据: qianji://publicapi/addbill?&type=0&money=1.9&time=2023-07-26 19:39:51&remark=#北京快松果科技有限公司 # 松果出行订单扣款&catename=单车电车&catechoose=0&catetheme=auto&bookname=自用账本&accountname=微信零钱&accountname2=无账户&shopAccount=北京快松果科技有限公司&shopRemark=松果出行订单扣款&reimbursement=false&fromApp=微信&rawAccount=零钱通&rawAccount2=无账户&extraData=&fee=0&timeStamp=1690371591000
The text was updated successfully, but these errors were encountered:
No branches or pull requests
当前使用的框架
描述错误
备注设置导致解析异常
重现步骤
相关环境说明
自动记账 3.3.4
日志内容
[2023-07-27 09:26:56][自动记账:AppFragment]自动分类结果:单车电车.耗时: 4ms
[2023-07-27 09:26:56][自动记账:AppFragment]自动分类结果:单车电车
[2023-07-27 09:26:56][自动记账:AppFragment]qianji://publicapi/addbill?&type=0&money=1.9&time=2023-07-26 19:39:51&catename=NotFound&catechoose=0&catetheme=auto&accountname=无账户&accountname2=无账户&shopAccount=北京快松果科技有限公司&shopRemark=松果出行订单扣款&reimbursement=false&fromApp=&rawAccount=零钱通&rawAccount2=&extraData=&fee=&timeStamp=1690371591000
[2023-07-27 09:26:56][js运行代码]function getCategory(shopName,shopRemark,type,hour,minute,money){const isInTimeInner=function(a,b,c,d){regT=/([01\b]\d|2[0-3]):([0-5]\d)/;const e=a.match(regT),f=b.match(regT);if(null==e||null==f||e.length<3||f.length<3)return!1;const g=parseInt(e[1],10),h=parseInt(f[1],10),i=parseInt(e[2],10),j=parseInt(f[2],10);return g>h?c===g&&d>=i||c>g||h>c||c===h&&j>=d:h>g?c===g&&d>=i||c>g&&h>c||c===h&&j>=d:g===h?j>i?c===g&&d>=i&&j>=d:i>j?c===g&&d>=i||j>=d||c!==g:i===j&&d===i&&c===g:void 0}; if(shopName.indexOf('北京快松果科技有限公司')!=-1 && shopRemark.indexOf('松果出行订单扣款')!=-1 && type == '支出' )return '单车电车';if(shopName.indexOf('北京快松果科技有限公司')!=-1 && shopRemark.indexOf('松果出行订单扣款')!=-1 && type == '支出' )return '测试'; return 'NotFound';} getCategory('北京快松果科技有限公司','松果出行订单扣款','支出',19,39,'1.9');
[2023-07-27 09:26:56][解析结果][松果出行订单扣款, 零钱通, 0, 1.90, , 北京快松果科技有限公司, , 2023年7月26日 19:39:51, 0]
[2023-07-27 09:26:56][自动记账:AppFragment]com.tencent.mm 解析结果:松果出行订单扣款##零钱通##0##1.90####北京快松果科技有限公司####2023年7月26日 19:39:51##0.耗时: 10ms
[2023-07-27 09:26:56][js运行代码]function getData(a){function b(a,b,c){var d,e,f,g,h,i,j;if("string"!=typeof b)return b;if(d="$|"!=c,"$|"==c&&(b+="$|"),-1!=b.indexOf(c)){for(e=b.split(c),f=0,g="",h=0;h<e.length;h++)try{if(i=e[h],-1!=e[h].indexOf("$")?(j=parseInt(e[h].replace("$","")),j<a.length&&(i=d?parseFloat(a[j].replace(",","")):a[j])):d&&(i=parseFloat(e[h].replace(",",""))),0==f){g=i,f=g;continue}f="$-"==c?g-i:"$+"==c?g+i:g||i,g=f}catch(k){console.log(k)}return f}return b}function c(a,b){var c,d,e;for(c=a.length-1;c>=1;c--)for(d="$"+c.toString(),e=a[c];-1!=b.indexOf(d);)b=b.replace(d,e);return b};var d,e,f,g,h,i;try{if(pattern=/Flag:11,Data:[., -(.), 当前状态, 支付成功, 支付时间, (.), 商品, (.), 商户全称, (.), 收单机构, (.), 支付方式, (.) , .]/,pattern.test(a)){for(d=pattern.exec(a),e="$3##$6##0##$1####$4####$2##0",f=e.split("##"),g="",h=0;h<f.length;h++)i=f[h],g+=-1!=i.indexOf("$+")?b(d,i,"$+")+"##":-1!=i.indexOf("$-")?b(d,i,"$-")+"##":-1!=i.indexOf("$|")?b(d,i,"$|")+"##":i+"##";return g=g.slice(0,g.length-2),c(d,g)}}catch(j){};return"undefined##undefined##undefined##undefined##undefined##undefined##undefined##undefined##0"}getData('Flag:11,Data:[松果出行订单扣款, -1.90, 当前状态, 支付成功, 支付时间, 2023年7月26日 19:39:51, 商品, 松果出行订单扣款, 商户全称, 北京快松果科技有限公司, 收单机构, 财付通支付科技有限公司, 支付方式, 零钱通 , 交易单号, 4200001944202307262816728680, 商家小程序 松果出行, 账单服务, 对订单有疑惑, 发起群收款, 在此商户的交易, 联系商家, 商家电话, 公众号, 本服务由财付通提供]');
[2023-07-27 09:24:01][自动记账:AppFragment]钱迹URL:qianji://publicapi/addbill?&type=0&money=1.9&remark=#北京快松果科技有限公司 # 松果出行订单扣款&showresult=0&time=2023-07-26 19:39:51&catename=单车电车&catechoose=0&catetheme=auto&bookname=自用账本&accountname=微信零钱
[2023-07-27 09:24:01][自动记账:AppFragment]再次获取cate:单车电车数据: qianji://publicapi/addbill?&type=0&money=1.9&time=2023-07-26 19:39:51&remark=#北京快松果科技有限公司 # 松果出行订单扣款&catename=单车电车&catechoose=0&catetheme=auto&bookname=自用账本&accountname=微信零钱&accountname2=无账户&shopAccount=北京快松果科技有限公司&shopRemark=松果出行订单扣款&reimbursement=false&fromApp=微信&rawAccount=零钱通&rawAccount2=无账户&extraData=&fee=0&timeStamp=1690371591000
这不是重复的 issue
The text was updated successfully, but these errors were encountered: