1.提示去除
This commit is contained in:
parent
c1633e80a7
commit
8f9b6650f4
@ -159,12 +159,14 @@ function handleCenterCode(msgXml, isNewCenter) {
|
||||
const result = msg?.data[0]?.result;
|
||||
if (result) {
|
||||
const { code, message, retval } = result
|
||||
if (!ifNeedRetry(code)) {
|
||||
if (code != '1') {
|
||||
const rMessage = decodeURIComponent(message as string)
|
||||
if (!ifNeedRetry(code)) {
|
||||
Prompt.showToast({
|
||||
message: rMessage,
|
||||
duration: 3000
|
||||
});
|
||||
}
|
||||
return { code, message }
|
||||
} else {
|
||||
return { code, keystr: retval }
|
||||
@ -178,11 +180,13 @@ function handleCenterCode(msgXml, isNewCenter) {
|
||||
return patternArr && patternArr[1]
|
||||
});
|
||||
|
||||
if (code != '1') {
|
||||
if (!ifNeedRetry(code)) {
|
||||
Prompt.showToast({
|
||||
message: decodeURIComponent(message as string),
|
||||
duration: 3000
|
||||
});
|
||||
}
|
||||
return { code, message: decodeURIComponent(message) }
|
||||
} else {
|
||||
return { code, keystr, message }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user