Skip to content

Commit

Permalink
✨ 增加支付宝基金收入 #16
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkioTomas committed Mar 28, 2024
1 parent c649391 commit 31e3c09
Show file tree
Hide file tree
Showing 3 changed files with 3,588 additions and 3,641 deletions.
46 changes: 33 additions & 13 deletions src/rule/app/支付宝消息盒子/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,40 @@ export function get(data) {
}


}else if(pl.templateType === "S"){ //收款码收款
}else if(pl.templateType === "S"){

//console.log(pl)
//收款码收款
var dataItems = JSON.parse(pl.extraInfo)
return new RuleObject(
BillType.Income,
parseFloat(dataItems.content.replace("收款金额¥","")),
dataItems.assistMsg2,
"",
dataItems.assistMsg1,
"",
0,
Currency['人民币'],
data[0].mct,
"支付宝收款码收款")
}

if(pl.link.indexOf("appId=60000081") > 0){
return new RuleObject(
BillType.Income,
parseFloat(dataItems.content.replace("收款金额¥","")),
dataItems.assistMsg2,
dataItems.assistMsg1,
'支付宝余额',
"",
0,
Currency['人民币'],
data[0].mct,
"支付宝"+pl.title
)
}else if(pl.link.indexOf("appId=68688004") > 0)
//TODO 理财收益,目前只有正收益,好像是合并发来的?
return new RuleObject(
BillType.Income,
parseFloat(dataItems.mainText.replace("∝","").replace("+","")),
pl.title,
dataItems.assistMsg1,
'余利宝',
"",
0,
Currency['人民币'],
data[0].mct,
"支付宝"+pl.title)
}


return null;
}
Expand Down
23 changes: 22 additions & 1 deletion src/rule/app/支付宝消息盒子/main.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 31e3c09

Please sign in to comment.