v1.0.4 - 修复批量添加函数的JavaScript语法错误
This commit is contained in:
@@ -429,13 +429,14 @@ async function batchAddMatches() {
|
||||
const lines = dataText.split('\n').filter(line => line.trim());
|
||||
let successCount = 0;
|
||||
let failCount = 0;
|
||||
let errors = [];\n
|
||||
let errors = [];
|
||||
for (const line of lines) {
|
||||
const parts = line.split(',').map(p => p.trim());
|
||||
|
||||
if (parts.length < 3) {
|
||||
failCount++;
|
||||
errors.push(`格式错误: ${line}`);n continue;
|
||||
errors.push(`格式错误: ${line}`);
|
||||
continue;
|
||||
}
|
||||
|
||||
const matchData = {
|
||||
|
||||
Reference in New Issue
Block a user