Skip to content

Commit

Permalink
修改船员辣条的名称,分开统计
Browse files Browse the repository at this point in the history
  • Loading branch information
mosaicpan committed May 27, 2020
1 parent f9846ac commit 22a4b50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/electron/renderer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bls",
"version": "0.3.2",
"version": "0.3.3",
"author": "十字 <mscststs@qq.com>",
"description": "Bilibili Live Super",
"license": null,
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/stocks/IntervalTask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ export default {
if(rq.data.award_text.indexOf("辣条")>=0){
//辣条?
let giftNumber = parseInt(rq.data.award_text.split("X")[1]) | 0; //过滤NaN
this.$eve.emit("giftCount", user.name, "辣条", giftNumber,"船员"); //提交统计
this.$eve.emit("giftCount", user.name, "辣条(舰长)", giftNumber,"船员"); //提交统计
}else if(rq.data.award_text.indexOf("亲密度")>=0){
let giftNumber = parseInt(rq.data.award_text.split("+")[1]) | 0;
this.$eve.emit("giftCount", user.name, "亲密度", giftNumber,"船员"); //提交统计
}else if(rq.data.award_text === ""){
// text 为空
let {award_name , award_num} = rq.data;
this.$eve.emit("giftCount", user.name, award_name, award_num,"船员"); //提交统计
this.$eve.emit("giftCount", user.name, `${award_name}(舰长)`, award_num,"船员"); //提交统计
}
}else{
if(!~rq.msg.indexOf("拒绝")){
Expand Down

0 comments on commit 22a4b50

Please sign in to comment.