🐛 修复一些 bug

* 天赋为 0 时设为 1
* 修正签到 url
This commit is contained in:
BTMuli
2023-12-15 00:49:45 +08:00
parent 3337cfbf6d
commit 86f7838578
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
<div :title="talent.name" v-for="talent in talents" :key="talent.pos" class="duc-dort-item"> <div :title="talent.name" v-for="talent in talents" :key="talent.pos" class="duc-dort-item">
<span>{{ talent.name }}</span> <span>{{ talent.name }}</span>
<img :src="talent.icon" alt="talent" /> <img :src="talent.icon" alt="talent" />
<span>Lv.{{ talent.level }}</span> <span>Lv.{{ talent.level === 0 ? 1 : talent.level }}</span>
</div> </div>
</div> </div>
</template> </template>

View File

@@ -144,7 +144,7 @@ class TGClient {
/** /**
* @func getUrl * @func getUrl
* @since Beta v0.3.6 * @since Beta v0.3.8
* @desc 获取 url * @desc 获取 url
* @param {string} func - 方法名 * @param {string} func - 方法名
* @returns {string} - url * @returns {string} - url
@@ -152,7 +152,7 @@ class TGClient {
getUrl(func: string): string { getUrl(func: string): string {
switch (func) { switch (func) {
case "sign_in": case "sign_in":
return "https://webstatic.mihoyo.com/bbs/event/signin-ys/index.html?act_id=e202009291139501"; return "https://act.mihoyo.com/bbs/event/signin/hk4e/index.html?act_id=e202311201442471&bbs_auth_required=true&bbs_presentation_style=fullscreen&mhy_presentation_style=fullscreen&utm_source=bbs&utm_medium=ys&utm_campaign=icon";
case "game_record": case "game_record":
return "https://webstatic.mihoyo.com/app/community-game-records/index.html?bbs_presentation_style=fullscreen"; return "https://webstatic.mihoyo.com/app/community-game-records/index.html?bbs_presentation_style=fullscreen";
case "daily_note": case "daily_note":