Merge branch 'main' of github.com:hainatravel/global-sales

hotfix/new-conversation
YCC 1 year ago
commit a1ae7a1615

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

Loading…
Cancel
Save