字段修复
This commit is contained in:
parent
f72f2cbf06
commit
402f6fd111
@ -548,7 +548,7 @@
|
|||||||
|
|
||||||
e.childNodes[2].nodeValue += '你的最佳成绩是 ' + bestLap;
|
e.childNodes[2].nodeValue += '你的最佳成绩是 ' + bestLap;
|
||||||
if (isBeat)
|
if (isBeat)
|
||||||
e.childNodes[2].nodeValue += ',比上次成绩 ' + record + ' 快 ' + bestBy;
|
e.childNodes[2].nodeValue += ',比之前最佳 ' + record + ' 快 ' + bestBy;
|
||||||
e.childNodes[2].nodeValue += '。'
|
e.childNodes[2].nodeValue += '。'
|
||||||
|
|
||||||
|
|
||||||
@ -601,7 +601,7 @@
|
|||||||
const wordsList = e.firstChild.nodeValue.split(' ');
|
const wordsList = e.firstChild.nodeValue.split(' ');
|
||||||
// 发送的数量
|
// 发送的数量
|
||||||
let number;
|
let number;
|
||||||
if (wordsList[3] === 'some' || wordsList[3] === 'a') // 收到一个可数的不可堆叠或不可数的东西
|
if (wordsList[3] === 'some' || wordsList[3][0] === 'a') // 收到一个可数的不可堆叠或不可数的东西
|
||||||
number = '1x';
|
number = '1x';
|
||||||
else if (wordsList[3][wordsList[3].length - 1] === 'x') // 收到可数的可堆叠东西
|
else if (wordsList[3][wordsList[3].length - 1] === 'x') // 收到可数的可堆叠东西
|
||||||
number = wordsList[3];
|
number = wordsList[3];
|
||||||
@ -614,10 +614,10 @@
|
|||||||
e.childNodes[2].nodeValue = ' 的 ';
|
e.childNodes[2].nodeValue = ' 的 ';
|
||||||
if (number)
|
if (number)
|
||||||
e.childNodes[2].nodeValue += number
|
e.childNodes[2].nodeValue += number
|
||||||
e.childNodes[2].nodeValue += ' ' + item;
|
e.childNodes[2].nodeValue += ' ' + item.join(' ');
|
||||||
if (isWithMsg)
|
if (isWithMsg)
|
||||||
e.childNodes[2].nodeValue += ',附带信息:' + msg;
|
e.childNodes[2].nodeValue += ',附带信息:' + msg;
|
||||||
e.childNodes[2].nodeValue += '。';
|
//e.childNodes[2].nodeValue += '。';
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user