This commit is contained in:
2026-08-27 16:34:37 +08:00
parent 5f7ba5dbc5
commit 8131d58d21
2 changed files with 35 additions and 2 deletions
+4 -2
View File
@@ -658,8 +658,10 @@
const message = /^internal server error$/i.test(raw)
? '服务端处理异常,请联系管理员'
: (raw || fallback)
const code = String(error?.code || '').trim()
const reference = String(error?.requestId || error?.traceId || '').trim()
return reference ? `${message}(请求编号:${reference})` : message
const meta = [code ? `错误码:${code}` : '', reference ? `请求编号:${reference}` : ''].filter(Boolean)
return meta.length ? `${message}(${meta.join(';')})` : message
},
async refreshAfterTaskConflict(message) {
const requestedTaskId = this.remoteTaskId || this.currentBox.taskId
@@ -1177,7 +1179,7 @@
} catch (error) {
if (requestId !== this.taskRequestId) return
this.debugSubmit('refresh.error', { requestId, message: error.message || '', code: error.code || '', statusCode: error.statusCode || '', requestIdFromServer: error.requestId || '', traceId: error.traceId || '' })
this.remoteError = error.network ? '网络不可用,无法开始拣货,恢复网络后请重试' : (error.message || '任务同步失败')
this.remoteError = error.network ? '网络不可用,无法开始拣货,恢复网络后请重试' : this.remoteFailureMessage(error, '任务同步失败')
} finally { if (requestId === this.taskRequestId) this.remoteLoading = false }
},
async loadLoadingEvidence() {