#角色 命令强制更新MysInfo数据

This commit is contained in:
Kokomi 2023-02-19 07:55:43 +08:00
parent 980f4a8cf7
commit 3c737a8f76
8 changed files with 61 additions and 6 deletions

View File

@ -21,7 +21,7 @@
* 其他功能及界面优化,部分已知问题调整 * 其他功能及界面优化,部分已知问题调整
* `#上传深渊` 界面与样式调整 * `#上传深渊` 界面与样式调整
* `#刷新排名`、`#禁用排名`、`#启用排名`可由群管理员进行管理 * `#刷新排名`、`#禁用排名`、`#启用排名`可由群管理员进行管理
* 增加`#删除面板`命令目前绑定CK用户使用Bot主人可删除任意UID数据 * 增加`#删除面板`命令,目前绑定CK用户使用删除自己UID数据Bot主人可删除任意UID数据
# 2.2.0 # 2.2.0

View File

@ -25,6 +25,7 @@ const ProfileStat = {
let player = Player.create(e) let player = Player.create(e)
let avatarRet = await player.refreshAndGetAvatarData({ let avatarRet = await player.refreshAndGetAvatarData({
index: 2,
detail: 1, detail: 1,
talent: isAvatarList ? 0 : 1, talent: isAvatarList ? 0 : 1,
rank: true, rank: true,

View File

@ -257,6 +257,9 @@ export default class Player extends Base {
} }
async refresh (cfg) { async refresh (cfg) {
if (cfg.index || cfg.index === 0) {
await this.refreshMysInfo(cfg.index)
}
if (cfg.detail || cfg.detail === 0) { if (cfg.detail || cfg.detail === 0) {
await this.refreshMysDetail(cfg.detail) await this.refreshMysDetail(cfg.detail)
} }

View File

@ -104,11 +104,13 @@ body,
.cont-footer { .cont-footer {
display: flex; display: flex;
background: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.4);
width: 100%;
} }
.cont-footer span { .cont-footer span {
width: 50%; width: 35%;
} }
.cont-footer .serv { .cont-footer .serv {
width: 65%;
text-align: right; text-align: right;
} }
.cont-footer .new-tip:before { .cont-footer .new-tip:before {

View File

@ -125,12 +125,14 @@ body, .container {
.cont-footer { .cont-footer {
display: flex; display: flex;
background: rgba(0, 0, 0, .4); background: rgba(0, 0, 0, .4);
width: 100%;
span { span {
width: 50%; width: 35%;
} }
.serv { .serv {
width: 65%;
text-align: right; text-align: right;
} }

View File

@ -65,4 +65,19 @@ body {
color: #d3bc8e; color: #d3bc8e;
white-space: nowrap; white-space: nowrap;
} }
.dev-cont {
background: none;
}
.dev-cont .cont-title {
background: rgba(0, 0, 0, 0.7);
}
.dev-cont .cont-body {
background: rgba(0, 0, 0, 0.5);
}
.dev-cont .cont-body.dev-info {
background: rgba(0, 0, 0, 0.2);
}
.dev-cont .strong {
font-size: 15px;
}
/*# sourceMappingURL=version-info.css.map */ /*# sourceMappingURL=version-info.css.map */

View File

@ -7,11 +7,23 @@
{{block 'main'}} {{block 'main'}}
{{each changelogs ds idx}} {{each changelogs ds idx}}
<div class="hydro-bg log-cont"> <div class="hydro-bg log-cont">
<div class="cont"> {{set v = ds.version }}
{{set isDev = v[v.length-1] === 'v'}}
<div class="cont {{isDev ? 'dev-cont': ''}}">
{{if idx === 0 }} {{if idx === 0 }}
<div class="cont-title current-version">当前版本 {{ds.version}}</div> <div class="cont-title current-version">当前版本 {{v}}</div>
{{if v[v.length-1] === 'v'}}
<div class="dev-info cont-body">
<div class="strong">【Dev测试分支开发中】</div>
<ul class="log-ul">
<li>如需体验可切换至<span class="cmd">miao-plugin</span>仓库<span class="cmd">dev</span>分支</li>
<li>Dev功能可能不稳定建议具备一定排错能力的勇士体验</li>
</ul>
</div>
{{else}} {{else}}
<div class="cont-title">喵喵版本 {{ds.version}}</div> {{/if}}
{{else}}
<div class="cont-title">喵喵版本 {{v}}</div>
{{/if}} {{/if}}
<div class="cont-body"> <div class="cont-body">
<ul class="log-ul"> <ul class="log-ul">

View File

@ -88,3 +88,23 @@ body {
white-space: nowrap; white-space: nowrap;
} }
} }
.dev-cont {
background: none;
.cont-title {
background: rgba(0, 0, 0, .7);
}
.cont-body {
background: rgba(0, 0, 0, .5);
&.dev-info {
background: rgba(0, 0, 0, .2);
}
}
.strong {
font-size: 15px;
}
}