|
|
|
@ -411,9 +411,11 @@ export const whatsappMsgTypeMapped = {
|
|
|
|
|
type: 'audio',
|
|
|
|
|
data: (msg) => ({
|
|
|
|
|
id: msg.wamid,
|
|
|
|
|
audioProps: { preload: 'auto' },
|
|
|
|
|
data: {
|
|
|
|
|
audioURL: msg.audio.link,
|
|
|
|
|
audioType: msg.audio?.mime_type || 'audio/ogg',
|
|
|
|
|
controlsList: 'nofullscreen',
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
renderForReply: (msg) => ({
|
|
|
|
@ -607,10 +609,12 @@ export const parseRenderMessageList = (messages) => {
|
|
|
|
|
export const whatsappError = {
|
|
|
|
|
'BAD_REQUEST': ' ',
|
|
|
|
|
'PARAM_INVALID': '参数错误, 请联系技术组',
|
|
|
|
|
'INTERNAL_SERVER_ERROR': '无法连接WhatsApp.\n请稍候重试',
|
|
|
|
|
'2': '无法连接WhatsApp.\n请稍候重试', // (#2) Service temporarily unavailable
|
|
|
|
|
'INTERNAL_SERVER_ERROR': '无法连接WhatsApp.\n请稍后重试',
|
|
|
|
|
'2': '[2] 无法连接WhatsApp.\n请稍后重试', // (#2) Service temporarily unavailable
|
|
|
|
|
'INVALID_PHONE_NUMBER': '无效号码, 请修正号码后重新从订单进入会话',
|
|
|
|
|
'100': '参数错误, 请联系技术组',
|
|
|
|
|
'FORBIDDEN': '[FORBIDDEN] ',
|
|
|
|
|
'4': '[4] 无法连接WhatsApp.\n请稍后重试', // (#4) Application request limit reached
|
|
|
|
|
'131026': '[131026] 消息无法投递(未同意WhatsApp 的隐私政策).\n请使用邮件联系',
|
|
|
|
|
'131047': '[131047] 会话未激活. \n请使用模板消息💬发送',
|
|
|
|
|
'131053': '[131053] 文件上传失败.',
|
|
|
|
|