|
|
|
@ -542,6 +542,9 @@ export const parseRenderMessageList = (messages) => {
|
|
|
|
|
waError = whatsappError?.[msgContent.whatsappApiError.code] || msgContent.whatsappApiError.message;
|
|
|
|
|
waError += `\n[${msgContent.errorCode}] ${whatsappError?.[msgContent.errorCode] || msgContent.errorMessage}`;
|
|
|
|
|
}
|
|
|
|
|
if (msgContent.errorMessage.includes('Invalid E.146 phone number')) {
|
|
|
|
|
waError = whatsappError.INVALID_PHONE_NUMBER;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
...msg,
|
|
|
|
@ -592,6 +595,7 @@ export const parseRenderMessageList = (messages) => {
|
|
|
|
|
export const whatsappError = {
|
|
|
|
|
'BAD_REQUEST': ' ',
|
|
|
|
|
'PARAM_INVALID': '参数错误, 请联系技术组',
|
|
|
|
|
'INVALID_PHONE_NUMBER': '无效号码, 请修正号码后尝试发送',
|
|
|
|
|
'100': '参数错误, 请联系技术组',
|
|
|
|
|
'131026': '[131026] 消息无法投递(未注册/使用旧版/未同意政策).\n请稍后重试或使用邮件联系',
|
|
|
|
|
'131047': '[131047] 会话超过24小时或未激活. \n请使用模板消息发送',
|
|
|
|
|