Auto-Accounting / AutoResource

自动记账资源提交平台,由GitBot自动化管理。
https://auto.ankio.net/
16 stars 10 forks source link

【微信】公众号_招商信用卡_支出@Ver.8 #330

Closed LanFeng11 closed 2 years ago

LanFeng11 commented 2 years ago

Update Log/更新日志

优化规则,提升速度

Data/数据

{"data":[{"app":"com.tencent.mm","dataId":"2MLQcDCSwWfnCwQdqkUQERYfsRRpMnwO","identify":"app","data":"{\"account_name1\":\"$1($2)\",\"shopRemark\":\"\",\"account_name2\":\"\",\"auto\":\"0\",\"regular_app\":\"com.tencent.mm\",\"identify\":\"app\",\"regex_input\":\"isSend:0,title:卡片消息.*?nickname:(.*?),.*?cover:,weapp_version:0,vid:,pic_num:0,digest:.*?您尾号(\\\\d{4})的信用卡最新交易信息.*?交易商户:((?!支付宝|财付通).*?)n交易类型:消费n交易金额:(\\\\d+\\\\.\\\\d{2})人民币.*?pub_time:(\\\\d+)\",\"fee\":\"\",\"shopName\":\"$3\",\"type\":\"0\",\"version\":8,\"dataId\":\"2MLQcDCSwWfnCwQdqkUQERYfsRRpMnwO\",\"money\":\"$4\",\"regular_name\":\"公众号-招商信用卡–支出\",\"str_input\":\"cache_user:全林科技,cache_user2:萍儿,cache_paytools:招商银行信用卡(0898),isSend:0,title:卡片消息,content:msg:appmsg:extinfo:,lowurl:,sourcedisplayname:,showtype:1,title:交易提醒,type:5,appattach:totallen:0,cdnthumburl:,aeskey:,attachid:,fileext:,cdnthumbaeskey:,content:ntt,content:,url:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx619991cc795028f5&redirect_uri=https%3A%2F%2Fxyk.cmbchina.com%2FOauthPortal%2Fv2%2Fwechat%2Fcallback%3Foauth_id%3D57714b09%26callback_uri%3Dhttps%253A%252F%252Fxyk.cmbchina.com%252Fwx%252F2201jfcj%253FPUSHTEMPLATESUFFIXID%253DWeiXinOCAF130S3350%26mode%3Dt2&scope=snsapi_base&response_type=code,soundtype:0,mmreader:template_detail:,publisher:nickname:招商银行信用卡,content:nttt,username:cmb4008205555,template_header:,category:item:is_pay_subscribe:0,video_height:0,finder_live:,sources:source:name:招商银行信用卡,content:ntttttt,content:nttttt,appmsg_like_type:0,video_width:0,recommendation:,title:交易提醒,native_url:,content:ntttt,cover:,weapp_version:0,vid:,pic_num:0,digest:尊敬的石先生:nn您尾号0898的信用卡最新交易信息n交易时间:07月06日16:38n交易商户:美团-茶颜悦色(星沙汽车总站镖局店)n交易类型:消费n交易金额:24.50人民币nn★回复“今日签到”速领好礼,每日限领1次!(如已领取请忽略)nn★积分抽奖!仅需9积分,最高赢6666积分,速戳→,cover_235_1:,weapp_username:,fileid:0,player:,cover_1_1:,del_flag:0,play_url:,shorturl:,pub_time:1657096713,pic_urls:,cover_16_9:,general_string:,template_op_type:0,weapp_path:,url:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx619991cc795028f5&redirect_uri=https%3A%2F%2Fxyk.cmbchina.com%2FOauthPortal%2Fv2%2Fwechat%2Fcallback%3Foauth_id%3D57714b09%26callback_uri%3Dhttps%253A%252F%252Fxyk.cmbchina.com%252Fwx%252F2201jfcj%253FPUSHTEMPLATESUFFIXID%253DWeiXinOCAF130S3350%26mode%3Dt2&scope=snsapi_base&response_type=code,tweetid:,finder_feed:,play_length:0,comment_topic_id:0,music_source:0,longurl:,styles:topColor:#000000,style:[color:#000000,range:0,7,content:ntttttt,font:s,color:#000000,range:9,17,content:ntttttt,font:s,color:#000000,range:32,35,content:ntttttt,font:s,color:#000000,range:73,2,content:ntttttt,font:s,color:#000000,range:81,8,content:ntttttt,font:s,color:#ff0000,range:90,58,content:ntttttt,font:s],content:nttttt,itemshowtype:4,contentattr:0,weapp_state:0,show_complaint_button:1,count:1,name:招商银行信用卡,topnew:cover:,width:0,digest:尊敬的石先生:nn您尾号0898的信用卡最新交易信息n交易时间:07月06日16:38n交易商户:美团-茶颜悦色(星沙汽车总站镖局店)n交易类型:消费n交易金额:24.50人民币nn★回复“今日签到”速领好礼,每日限领1次!(如已领取请忽略)nn★积分抽奖!仅需9积分,最高赢6666积分,速戳→,content:ntttt,height:0,type:0,content:nttt,content:ntt,forbid_forward:0,notify_msg:,des:尊敬的石先生:nn您尾号0898的信用卡最新交易信息n交易时间:07月06日16:38n交易商户:美团-茶颜悦色(星沙汽车总站镖局店)n交易类型:消费n交易金额:24.50人民币nn★回复“今日签到”速领好礼,每日限领1次!(如已领取请忽略)nn★积分抽奖!仅需9积分,最高赢6666积分,速戳→,appid:,sourceusername:,sdkver:0,action:,template_id:HQwStqDUCuPofGz-yllH1eFcz_pqXlB-pWA4_DvtEeI,thumburl:,contentattr:0,fromusername:cmb4008205555,appinfo:appname:招商银行信用卡,version:0,content:nt,isforceupdate:1,content:nt,status:3,cache_money:¥29.00\",\"id\":\"111\",\"time\":\"$5\",\"regular_remark\":\"编写:岚枫\\n说明:需关注【招商银行信用卡】公众号,支持所有平台支付,已排除支付宝微信支付\\n\"}","use":1,"name":"公众号-招商信用卡–支出","remark":"编写:岚枫\n说明:需关注【招商银行信用卡】公众号,支持所有平台支付,已排除支付宝微信支付\n","id":111,"sort":2,"version":"8","regular":"var d,e,f,g,h,i;try{if(pattern=/isSend:0,title:卡片消息.*?nickname:(.*?),.*?cover:,weapp_version:0,vid:,pic_num:0,digest:.*?您尾号(\\d{4})的信用卡最新交易信息.*?交易商户:((?!支付宝|财付通).*?)n交易类型:消费n交易金额:(\\d+\\.\\d{2})人民币.*?pub_time:(\\d+)/,pattern.test(a)){for(d=pattern.exec(a),e=\"##$1($2)##0##$4####$3####$5##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){}"}],"from":"app","id":"2MLQcDCSwWfnCwQdqkUQERYfsRRpMnwO","version":"8"}
AnkioBot commented 2 years ago

@LanFeng11,您的规则提交/更新成功!cdn有缓存,您可能要等待5分钟-24小时后才能看到您的规则数据。 本次测试结果:您的规则云端测试数据如下:

 时间:1657096713(云端不解析时间,时间戳或者直接日期都行) 
 金额:24.50 
 手续费: 
 账户1:招商银行信用卡(0898)  
 账户2:  
 商户:美团-茶颜悦色(星沙汽车总站镖局店)  
 商户备注:  

本次测试用例信息:

cache_user:全林科技,cache_user2:萍儿,cache_paytools:招商银行信用卡(0898),isSend:0,title:卡片消息,content:msg:appmsg:extinfo:,lowurl:,sourcedisplayname:,showtype:1,title:交易提醒,type:5,appattach:totallen:0,cdnthumburl:,aeskey:,attachid:,fileext:,cdnthumbaeskey:,content:ntt,content:,url:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx619991cc795028f5&redirect_uri=https%3A%2F%2Fxyk.cmbchina.com%2FOauthPortal%2Fv2%2Fwechat%2Fcallback%3Foauth_id%3D57714b09%26callback_uri%3Dhttps%253A%252F%252Fxyk.cmbchina.com%252Fwx%252F2201jfcj%253FPUSHTEMPLATESUFFIXID%253DWeiXinOCAF130S3350%26mode%3Dt2&scope=snsapi_base&response_type=code,soundtype:0,mmreader:template_detail:,publisher:nickname:招商银行信用卡,content:nttt,username:cmb4008205555,template_header:,category:item:is_pay_subscribe:0,video_height:0,finder_live:,sources:source:name:招商银行信用卡,content:ntttttt,content:nttttt,appmsg_like_type:0,video_width:0,recommendation:,title:交易提醒,native_url:,content:ntttt,cover:,weapp_version:0,vid:,pic_num:0,digest:尊敬的石先生:nn您尾号0898的信用卡最新交易信息n交易时间:07月06日16:38n交易商户:美团-茶颜悦色(星沙汽车总站镖局店)n交易类型:消费n交易金额:24.50人民币nn★回复“今日签到”速领好礼,每日限领1次!(如已领取请忽略)nn★积分抽奖!仅需9积分,最高赢6666积分,速戳→,cover_235_1:,weapp_username:,fileid:0,player:,cover_1_1:,del_flag:0,play_url:,shorturl:,pub_time:1657096713,pic_urls:,cover_16_9:,general_string:,template_op_type:0,weapp_path:,url:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx619991cc795028f5&redirect_uri=https%3A%2F%2Fxyk.cmbchina.com%2FOauthPortal%2Fv2%2Fwechat%2Fcallback%3Foauth_id%3D57714b09%26callback_uri%3Dhttps%253A%252F%252Fxyk.cmbchina.com%252Fwx%252F2201jfcj%253FPUSHTEMPLATESUFFIXID%253DWeiXinOCAF130S3350%26mode%3Dt2&scope=snsapi_base&response_type=code,tweetid:,finder_feed:,play_length:0,comment_topic_id:0,music_source:0,longurl:,styles:topColor:#000000,style:[color:#000000,range:0,7,content:ntttttt,font:s,color:#000000,range:9,17,content:ntttttt,font:s,color:#000000,range:32,35,content:ntttttt,font:s,color:#000000,range:73,2,content:ntttttt,font:s,color:#000000,range:81,8,content:ntttttt,font:s,color:#ff0000,range:90,58,content:ntttttt,font:s],content:nttttt,itemshowtype:4,contentattr:0,weapp_state:0,show_complaint_button:1,count:1,name:招商银行信用卡,topnew:cover:,width:0,digest:尊敬的石先生:nn您尾号0898的信用卡最新交易信息n交易时间:07月06日16:38n交易商户:美团-茶颜悦色(星沙汽车总站镖局店)n交易类型:消费n交易金额:24.50人民币nn★回复“今日签到”速领好礼,每日限领1次!(如已领取请忽略)nn★积分抽奖!仅需9积分,最高赢6666积分,速戳→,content:ntttt,height:0,type:0,content:nttt,content:ntt,forbid_forward:0,notify_msg:,des:尊敬的石先生:nn您尾号0898的信用卡最新交易信息n交易时间:07月06日16:38n交易商户:美团-茶颜悦色(星沙汽车总站镖局店)n交易类型:消费n交易金额:24.50人民币nn★回复“今日签到”速领好礼,每日限领1次!(如已领取请忽略)nn★积分抽奖!仅需9积分,最高赢6666积分,速戳→,appid:,sourceusername:,sdkver:0,action:,template_id:HQwStqDUCuPofGz-yllH1eFcz_pqXlB-pWA4_DvtEeI,thumburl:,contentattr:0,fromusername:cmb4008205555,appinfo:appname:招商银行信用卡,version:0,content:nt,isforceupdate:1,content:nt,status:3,cache_money:¥29.00 

如果您需要删除规则,请打上useless的标签,机器人将自动删除。