!121 czh-20260729-测试页展示sendBatch请求ID
Merge pull request !121 from 陈志浩/fix/sendbatch-request-id-20260729
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
<a-space direction="vertical" style="width: 100%">
|
<a-space direction="vertical" style="width: 100%">
|
||||||
<div v-if="responseInfo.success === true" style="margin-bottom: 8px">
|
<div v-if="responseInfo.success === true" style="margin-bottom: 8px">
|
||||||
<a-tag color="green">发送成功</a-tag>
|
<a-tag color="green">发送成功</a-tag>
|
||||||
<span v-if="responseInfo.messageId"> messageId: {{ responseInfo.messageId }}</span>
|
<span v-if="responseInfo.requestId"> requestId: {{ responseInfo.requestId }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="responseInfo.success === false" style="margin-bottom: 8px">
|
<div v-else-if="responseInfo.success === false" style="margin-bottom: 8px">
|
||||||
<a-tag color="red">发送失败</a-tag>
|
<a-tag color="red">发送失败</a-tag>
|
||||||
@@ -212,12 +212,12 @@ async function handleSend() {
|
|||||||
responseInfo.msgResponse = res.msgResponse;
|
responseInfo.msgResponse = res.msgResponse;
|
||||||
}
|
}
|
||||||
responseInfo.success = res?.success;
|
responseInfo.success = res?.success;
|
||||||
responseInfo.messageId = res?.messageId;
|
responseInfo.requestId = res?.requestId;
|
||||||
responseInfo.errorMessage = res?.errorMessage;
|
responseInfo.errorMessage = res?.errorMessage;
|
||||||
responseInfo.responseCode = res?.responseCode;
|
responseInfo.responseCode = res?.responseCode;
|
||||||
|
|
||||||
if (res?.success) {
|
if (res?.success) {
|
||||||
addLog('success', `发送成功!messageId: ${res?.messageId || '-'}`);
|
addLog('success', `发送成功!requestId: ${res?.requestId || '-'}`);
|
||||||
} else {
|
} else {
|
||||||
addLog('error', `发送失败: ${res?.errorMessage || '未知错误'}`);
|
addLog('error', `发送失败: ${res?.errorMessage || '未知错误'}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user