Auto-Accounting / AutoResource

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

【微信】公众号_招行信用卡_退款@Ver.4 #328

Closed LanFeng11 closed 2 years ago

LanFeng11 commented 2 years ago

Update Log/更新日志

适配微信数据更新

Data/数据

{"data":[{"app":"com.tencent.mm","dataId":"v5bCSmoCvu39M9nSR4gU9fIRxZGsREC2","identify":"app","data":"{\"account_name1\":\"$1($2)\",\"shopRemark\":\"$3\",\"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:.*您尾号(.*)的信用卡发生退货.*交易商户:((?!支付宝|财付通).*?)n交易类型:退货n交易金额:(.*?)人民币.*pub_time:(\\\\d+)\",\"fee\":\"\",\"shopName\":\"退款\",\"type\":\"1\",\"version\":4,\"dataId\":\"v5bCSmoCvu39M9nSR4gU9fIRxZGsREC2\",\"money\":\"$4\",\"regular_name\":\"公众号-招商信用卡-退款\",\"str_input\":\"cache_user:小程序专享1元券¥1.00,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:,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月31日17:28n交易商户:美团-韩学军n交易类型:退货n交易金额:18.81人民币n,cover_235_1:,weapp_username:,fileid:0,player:,cover_1_1:,summary:,del_flag:0,play_url:,shorturl:,pub_time:1659259705,pic_urls:,cover_16_9:,general_string:,template_op_type:0,weapp_path:,url:,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,15,content:ntttttt,font:s,color:#000000,range:30,24,content:ntttttt,font:s,color:#000000,range:60,2,content:ntttttt,font:s,color:#000000,range:68,8,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月31日17:28n交易商户:支付宝-韩学军n交易类型:退货n交易金额:18.81人民币n,content:ntttt,height:0,type:0,content:nttt,content:ntt,forbid_forward:0,notify_msg:,des:尊敬的石先生:nn您尾号0898的信用卡发生退货n交易时间:07月31日17:28n交易商户:支付宝-韩学军n交易类型:退货n交易金额:18.81人民币n,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:¥8.00\",\"id\":\"112\",\"time\":\"$5\",\"regular_remark\":\"编写:岚枫\"}","use":1,"name":"公众号-招商信用卡-退款","remark":"编写:岚枫","id":112,"sort":48,"version":"4","regular":"var d,e,f,g,h,i;try{if(pattern=/isSend:0,title:卡片消息.*nickname:(.*?),.*cover:,weapp_version:0,vid:,pic_num:0,digest:.*您尾号(.*)的信用卡发生退货.*交易商户:((?!支付宝|财付通).*?)n交易类型:退货n交易金额:(.*?)人民币.*pub_time:(\\d+)/,pattern.test(a)){for(d=pattern.exec(a),e=\"$3##$1($2)##1##$4####退款####$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":"v5bCSmoCvu39M9nSR4gU9fIRxZGsREC2","version":"4"}
AnkioBot commented 2 years ago

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

 时间:1659259705(云端不解析时间,时间戳或者直接日期都行) 
 金额:18.81 
 手续费: 
 账户1:招商银行信用卡(0898)  
 账户2:  
 商户:退款  
 商户备注:美团-韩学军  

本次测试用例信息:

cache_user:小程序专享1元券¥1.00,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:,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月31日17:28n交易商户:美团-韩学军n交易类型:退货n交易金额:18.81人民币n,cover_235_1:,weapp_username:,fileid:0,player:,cover_1_1:,summary:,del_flag:0,play_url:,shorturl:,pub_time:1659259705,pic_urls:,cover_16_9:,general_string:,template_op_type:0,weapp_path:,url:,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,15,content:ntttttt,font:s,color:#000000,range:30,24,content:ntttttt,font:s,color:#000000,range:60,2,content:ntttttt,font:s,color:#000000,range:68,8,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月31日17:28n交易商户:支付宝-韩学军n交易类型:退货n交易金额:18.81人民币n,content:ntttt,height:0,type:0,content:nttt,content:ntt,forbid_forward:0,notify_msg:,des:尊敬的石先生:nn您尾号0898的信用卡发生退货n交易时间:07月31日17:28n交易商户:支付宝-韩学军n交易类型:退货n交易金额:18.81人民币n,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:¥8.00 

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