Auto-Accounting / AutoResource

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

【微信】公众号_招商信用卡_退款@Ver.2 #108

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\":\"$4\",\"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\":\"$3\",\"type\":\"1\",\"version\":2,\"dataId\":\"v5bCSmoCvu39M9nSR4gU9fIRxZGsREC2\",\"money\":\"$5\",\"regular_name\":\"公众号-招商信用卡-退款\",\"str_input\":\"cache_user:¥4.20,cache_user2:萍儿,cache_paytools:招商银行储蓄卡(5588),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%2Foauth.cc.cmbchina.com%2FOauthPortal%2Fwechat%2Fcallback%3Foauth_id%3D57714b09%26callback_uri%3Dhttps%253A%252F%252Fxyk.cmbchina.com%252Fcredit-express%252Fbill?handlingId=250001&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect,soundtype:0,mmreader:template_detail:,publisher:nickname:招商银行信用卡,content:nttt,username:cmb4008205555,template_header:,category:item:is_pay_subscribe:0,video_height:0,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交易时间:15日 19:35n交易商户:美团-美团支付-美团支付n交易类型:退货n交易金额:人民币 0.67元nn退款信息笔笔查,账务信息全掌握,点击-查看详情,立即了解↓,cover_235_1:,weapp_username:,fileid:0,player:,cover_1_1:,del_flag:0,play_url:,shorturl:,pub_time:1634297741,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%2Foauth.cc.cmbchina.com%2FOauthPortal%2Fwechat%2Fcallback%3Foauth_id%3D57714b09%26callback_uri%3Dhttps%253A%252F%252Fxyk.cmbchina.com%252Fcredit-express%252Fbill?handlingId=250001&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect,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,27,content:ntttttt,font:s,color:#ff0000,range:63,2,content:ntttttt,font:s,color:#000000,range:71,11,content:ntttttt,font:s,color:#0000ff,range:83,29,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交易时间:15日 19:35n交易商户:美团-美团支付-美团支付n交易类型:退货n交易金额:人民币 0.67元nn退款信息笔笔查,账务信息全掌握,点击-查看详情,立即了解↓,content:ntttt,height:0,type:0,content:nttt,content:ntt,forbid_forward:0,notify_msg:,des:尊敬的石先生:nn您尾号0898的信用卡发生退货n交易时间:15日 19:35n交易商户:美团-美团支付-美团支付n交易类型:退货n交易金额:人民币 0.67元nn退款信息笔笔查,账务信息全掌握,点击-查看详情,立即了解↓,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:¥4.20\",\"id\":\"42\",\"time\":\"$6\",\"regular_remark\":\"编写:岚枫\"}","use":1,"name":"公众号-招商信用卡-退款","remark":"编写:岚枫","id":42,"sort":8,"version":"2","regular":";try{pattern=/isSend:0,title:卡片消息.*nickname:(.*?),.*cover:,weapp_version:0,vid:,pic_num:0,digest:.*您尾号(.*)的信用卡发生退货.*交易商户:((?!支付宝|财付通).*?)-(.*?)n交易类型:退货n交易金额:人民币 (.*?)元.*pub_time:(\\d+)/;if(pattern.test(a)){var array=pattern.exec(a);var remark='$4',account='$1($2)',type='1',money='$5',shopName='$3',account2='',fee='',time='$6';for(var i=array.length-1;i>=1;i--){var rep=\"$\"+i.toString();var repStr=array[i];remark=remark.replace(rep,repStr);account=account.replace(rep,repStr);type=type.replace(rep,repStr);money=money.replace(rep,repStr);shopName=shopName.replace(rep,repStr);account2=account2.replace(rep,repStr);fee=fee.replace(rep,repStr);time=time.replace(rep,repStr)}return remark+'##'+account+'##'+type+'##'+money+'##'+account2+'##'+shopName+'##'+fee+'##'+time+'##0'}}catch(e){console.log(e)};"}],"from":"app","id":"v5bCSmoCvu39M9nSR4gU9fIRxZGsREC2","version":"2"}
AnkioBot commented 2 years ago

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

 时间:1634297741(云端不解析时间,时间戳或者直接日期都行) 
 金额:0.67 
 手续费: 
 账户1:招商银行信用卡(0898)  
 账户2:  
 商户:美团  
 商户备注:美团支付-美团支付  

本次测试用例信息:

cache_user:¥4.20,cache_user2:萍儿,cache_paytools:招商银行储蓄卡(5588),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%2Foauth.cc.cmbchina.com%2FOauthPortal%2Fwechat%2Fcallback%3Foauth_id%3D57714b09%26callback_uri%3Dhttps%253A%252F%252Fxyk.cmbchina.com%252Fcredit-express%252Fbill?handlingId=250001&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect,soundtype:0,mmreader:template_detail:,publisher:nickname:招商银行信用卡,content:nttt,username:cmb4008205555,template_header:,category:item:is_pay_subscribe:0,video_height:0,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交易时间:15日 19:35n交易商户:美团-美团支付-美团支付n交易类型:退货n交易金额:人民币 0.67元nn退款信息笔笔查,账务信息全掌握,点击-查看详情,立即了解↓,cover_235_1:,weapp_username:,fileid:0,player:,cover_1_1:,del_flag:0,play_url:,shorturl:,pub_time:1634297741,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%2Foauth.cc.cmbchina.com%2FOauthPortal%2Fwechat%2Fcallback%3Foauth_id%3D57714b09%26callback_uri%3Dhttps%253A%252F%252Fxyk.cmbchina.com%252Fcredit-express%252Fbill?handlingId=250001&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect,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,27,content:ntttttt,font:s,color:#ff0000,range:63,2,content:ntttttt,font:s,color:#000000,range:71,11,content:ntttttt,font:s,color:#0000ff,range:83,29,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交易时间:15日 19:35n交易商户:美团-美团支付-美团支付n交易类型:退货n交易金额:人民币 0.67元nn退款信息笔笔查,账务信息全掌握,点击-查看详情,立即了解↓,content:ntttt,height:0,type:0,content:nttt,content:ntt,forbid_forward:0,notify_msg:,des:尊敬的石先生:nn您尾号0898的信用卡发生退货n交易时间:15日 19:35n交易商户:美团-美团支付-美团支付n交易类型:退货n交易金额:人民币 0.67元nn退款信息笔笔查,账务信息全掌握,点击-查看详情,立即了解↓,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:¥4.20 

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