Browse Source

修复 sanbon 徽章的读取错误

pull/1/head
枫谷剑仙 2 years ago
parent
commit
3e82e16a80
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      script.js
  2. +1
    -1
      service-worker.js

+ 2
- 1
script.js View File

@@ -2811,8 +2811,9 @@ function sanbonFotmationToPdfFotmation(obj)
f.title = team.title;
f.detail = team.content;
const t = f.teams[0];
//队伍徽章
t[2] = Formation.daddbBadgeMap.find(badge=>badge.sanbon === team.badge)?.pdf || team.badge;
t[2] = Formation.sanbonBadgeMap.find(badge=>badge.sanbon === team.badge)?.pdf ?? team.badge;
const members = t[0], assists = t[1];
for (let i = 0; i< members.length; i++) {
const m = members[i], a = assists[i], dm = team.members[i];


+ 1
- 1
service-worker.js View File

@@ -27603,7 +27603,7 @@ const cachesMap = new Map([
],
[
"script.js",
"6bc01d0d3dd1a16a2652bd17bc04532f"
"485f58ac99f5c4698ca80e20f0a01959"
],
[
"solo.html",


Loading…
Cancel
Save