update:星铁抽卡记录查看数据总览,添加星铁世界名片等

This commit is contained in:
Rrrrrrray 2023-05-04 02:14:53 +08:00
parent 39705527c2
commit 103585a647
66 changed files with 57 additions and 48 deletions

View File

@ -55,6 +55,7 @@ export class gcLog extends plugin {
})
this.androidUrl = 'docs.qq.com/doc/DUWpYaXlvSklmVXlX'
this._path = process.cwd().replace(/\\/g, '/')
}
async init () {
@ -99,8 +100,9 @@ export class gcLog extends plugin {
if (!data) return
let url='gachaLog'
if(this.e.isSr){
data.tplFile='./plugins/genshin/resources/StarRail/html/gachaLog/gachaLog.html'
url='StarRail/gachaLog'
url ='StarRail/gachaLog'
data.tplFile = './plugins/genshin/resources/StarRail/html/gachaLog/gachaLog.html'
data.headStyle = `<style> .head_box { background: url(${this._path}/plugins/genshin/resources/StarRail/img/worldcard/星穹列车.png) #fff; background-repeat: no-repeat; background-position-x: -10px; background-size: 500px; background-position-y: -90px; }</style>`
}
let img = await puppeteer.screenshot(url, data)
if (img) await this.reply(img)
@ -126,8 +128,9 @@ export class gcLog extends plugin {
if (typeof data != 'object') return
let url='gachaLog'
if(this.e.isSr){
data.tplFile='./plugins/genshin/resources/StarRail/html/gachaLog/gachaLog.html'
url='StarRail/gachaLog'
url ='StarRail/gachaLog'
data.tplFile = './plugins/genshin/resources/StarRail/html/gachaLog/gachaLog.html'
data.headStyle = `<style> .head_box { background: url(${this._path}/plugins/genshin/resources/StarRail/img/worldcard/星穹列车.png) #fff; background-repeat: no-repeat; background-position-x: -10px; background-size: 500px; background-position-y: -90px; }</style>`
}
let img = await puppeteer.screenshot(url, data)
if (img) await this.reply(img)
@ -139,8 +142,9 @@ export class gcLog extends plugin {
if (!data) return
let url='gachaLog'
if(this.e.isSr){
data.tplFile='./plugins/genshin/resources/StarRail/html/gachaLog/gachaLog.html'
url='StarRail/gachaLog'
url ='StarRail/gachaLog'
data.tplFile = './plugins/genshin/resources/StarRail/html/gachaLog/gachaLog.html'
data.headStyle = `<style> .head_box { background: url(${this._path}/plugins/genshin/resources/StarRail/img/worldcard/星穹列车.png) #fff; background-repeat: no-repeat; background-position-x: -10px; background-size: 500px; background-position-y: -90px; }</style>`
}
let img = await puppeteer.screenshot(url, data)
if (img) await this.reply(img)
@ -217,8 +221,9 @@ export class gcLog extends plugin {
if (!data) return
let url='logCount'
if(this.e.isSr){
data.tplFile='./plugins/genshin/resources/StarRail/html/logCount/logCount.html'
url='StarRail/logCount'
data.tplFile = './plugins/genshin/resources/StarRail/html/logCount/logCount.html'
data.headStyle = `<style> .head_box { background: url(${this._path}/plugins/genshin/resources/StarRail/img/worldcard/星穹列车.png) #fff; background-position-x: -10px; background-repeat: no-repeat; background-size: 540px; background-position-y: -100px; }</style>`
}
let img = await puppeteer.screenshot(url, data)
if (img) await this.reply(img)

View File

@ -55,7 +55,7 @@ export default class GachaLog extends base {
if (i <= 1) await common.sleep(500)
}
await this.e.reply('抽卡记录更新完成,您还可回复\n【#武器记录】统计武器池数据\n【#角色统计】按卡池统计数据\n【#导出记录】导出记录数据')
await this.e.reply(`抽卡记录更新完成,您还可回复\n【#${this?.e?.isSr?'光锥':'武器'}记录】统计武器池数据\n【#角色统计】按卡池统计数据\n【#导出记录】导出记录数据`)
this.isLogUrl = true

View File

@ -1,6 +1,6 @@
@font-face {
font-family: "tttgbnumber";
src: url("../../../../../resources/font/tttgbnumber.ttf");
src: url("../../../../../../resources/font/tttgbnumber.ttf");
font-weight: normal;
font-style: normal;
}
@ -36,18 +36,22 @@ body {
}
.head_box .id_text {
font-size: 24px;
color: #f5e7f4;
padding: 5px 0;
font-size: 26px;
}
.head_box .day_text {
font-size: 20px;
color: #f5e7f4;
padding: 5px 0;
font-size: 22px;
}
.head_box .genshin_logo {
.head_box .starrail_logo {
position: absolute;
top: 1px;
right: 15px;
width: 97px;
top: 5px;
right: 10px;
width: 115px;
}
.logo {
@ -156,20 +160,17 @@ body {
}
.card_list .item.star5 img {
background-image: url(../../img/other/bg5.png);
background: #885550;
background: linear-gradient(180deg,#885550,#c9a36a 53%);
width: 100%;
height: 70px;
/*filter: brightness(1.1);*/
background-size: 100%;
background-repeat: no-repeat;
}
.card_list .item.star4 img {
background: #343659;
background: linear-gradient(180deg,#343659,#8a5fcc 53%);
width: 100%;
height: 70px;
background-image: url(../../img/other/bg4.png);
background-size: 100%;
background-repeat: no-repeat;
}
.card_list .item .num {
@ -222,17 +223,20 @@ body {
background: #d3bc8d;
}
.label_301 {
.label_11 {
background-color: rgb(235 106 75);
}
.label_302 {
.label_12{
background-color: #E69449;
}
.label_200 {
.label_1 {
background-color: #757CC8;
}
.label_2 {
background-color: #75c895;
}
.label {
color: #fff;

View File

@ -3,10 +3,9 @@
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<link rel="shortcut icon" href="#"/>
<link rel="stylesheet" type="text/css" href="{{pluResPath}}html/gachaLog/gachaLog.css"/>
<link rel="stylesheet" type="text/css" href="{{pluResPath}}StarRail/html/gachaLog/gachaLog.css"/>
<link rel="preload" href="{{resPath}}font/tttgbnumber.ttf" as="font">
<link rel="preload" href="{{pluResPath}}img/namecard/{{headImg}}.png" as="image">
<link rel="preload" href="{{pluResPath}}img/other/bg5.png" as="image">
<link rel="preload" href="{{pluResPath}}StarRail/img/worldcard/星穹列车.png" as="image">
{{@headStyle}}
</head>
<body id="container" class="body_box">
@ -21,6 +20,7 @@
{{allNum}}抽
<span class="label label_{{type}}">{{typeName}}池</span>
</h2>
<img class="starrail_logo" src="{{pluResPath}}StarRail/img/other/logo.png"/>
</div>
<div class="data_box">

View File

@ -1,12 +1,12 @@
@font-face {
font-family: "tttgbnumber";
src: url("../../../../../resources/font/tttgbnumber.ttf");
src: url("../../../../../../resources/font/tttgbnumber.ttf");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "HYWenHei-55W";
src: url("../../../../../resources/font/HYWenHei-55W.ttf");
src: url("../../../../../../resources/font/HYWenHei-55W.ttf");
font-weight: normal;
font-style: normal;
}
@ -38,16 +38,20 @@ body {
}
.head_box .id_text {
font-size: 24px;
color: #f5e7f4;
padding: 5px 0;
font-size: 26px;
}
.head_box .day_text {
font-size: 20px;
color: #f5e7f4;
padding: 5px 0;
font-size: 22px;
}
.head_box .genshin_logo {
.head_box .starrail_logo {
position: absolute;
top: 1px;
right: 15px;
width: 97px;
top: 5px;
right: 10px;
width: 115px;
}
.base_info {
position: relative;
@ -139,19 +143,16 @@ body {
vertical-align: 2px;
}
.bg5 {
background-image: url(../../img/other/bg5.png);
background: #885550;
background: linear-gradient(180deg,#885550,#c9a36a 53%);
width: 100%;
height: 70px;
/*filter: brightness(1.1);*/
background-size: 100%;
background-repeat: no-repeat;
}
.bg4 {
background: #343659;
background: linear-gradient(180deg,#343659,#8a5fcc 53%);
width: 100%;
height: 70px;
background-image: url(../../img/other/bg4.png);
background-size: 100%;
background-repeat: no-repeat;
}
.list_box .item .life1 {
background-color: #62a8ea;

View File

@ -3,11 +3,9 @@
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="shortcut icon" href="#" />
<link rel="stylesheet" type="text/css" href="{{pluResPath}}html/logCount/logCount.css"/>
<link rel="stylesheet" type="text/css" href="{{pluResPath}}StarRail/html/logCount/logCount.css"/>
<link rel="preload" href="{{resPath}}/font/HYWenHei-55W.ttf" as="font">
<link rel="preload" href="{{resPath}}/font/tttgbnumber.ttf" as="font">
<link rel="preload" href="{{pluResPath}}img/other/bg5.png" as="image">
<link rel="preload" href="{{pluResPath}}img/other/bg4.png" as="image">
<link rel="preload" href="{{resPath}}/font/tttgbnumber.ttf" as="font">
{{@headStyle}}
</head>
<body id="container" class="body_box">
@ -15,6 +13,7 @@
<div class="head_box">
<div class="id_text">ID: {{uid}}</div>
<h2 class="day_text">抽卡统计-{{typeName}}</h2>
<img class="starrail_logo" src="{{pluResPath}}StarRail/img/other/logo.png"/>
</div>
{{each pool val}}
{{if val.roleNum > 0}}
@ -24,7 +23,7 @@
<div class="title"><h2>「{{val.five}}」</h2></div>
<span class="label label_301">{{val.count}}抽</span>
</div>
{{if typeName != "常驻"}}
{{if typeName != "常驻" || typeName != "新手"}}
<span class="date">{{val.start}} - {{val.end}}</span>
{{/if}}
</div>

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 994 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB