2.0/email-builder
Lei OT 7 months ago
parent de7133f7cd
commit d705fa7e22

@ -289,7 +289,6 @@ const whatsappMsgMapped = {
}, },
contentToRender: (contentObj) => { contentToRender: (contentObj) => {
console.log('whatsapp.inbound_message.received to render', contentObj); console.log('whatsapp.inbound_message.received to render', contentObj);
// const contentObj = result?.whatsappInboundMessage || result; // debug:
return parseRenderMessageItem(contentObj); return parseRenderMessageItem(contentObj);
}, },
contentToUpdate: () => null, contentToUpdate: () => null,
@ -332,7 +331,6 @@ const emailMsgMapped = {
}, },
contentToRender: (contentObj) => { contentToRender: (contentObj) => {
// console.log('email.inbound.received to render', contentObj); // console.log('email.inbound.received to render', contentObj);
// const contentObj = result?.emailMessage || result; // debug:
return parseRenderMessageItem(contentObj); return parseRenderMessageItem(contentObj);
}, },
contentToUpdate: (msgcontent) => null, contentToUpdate: (msgcontent) => null,

@ -9,8 +9,8 @@
export const API_HOST = 'http://202.103.68.144:8889/v2'; export const API_HOST = 'http://202.103.68.144:8889/v2';
export const WS_URL = 'ws://202.103.68.144:8889'; export const WS_URL = 'ws://202.103.68.144:8889';
export const EMAIL_HOST = 'http://202.103.68.231:888/service-mail'; export const EMAIL_HOST = 'http://202.103.68.231:888/service-mail';
export const EMAIL_ATTA_HOST = 'https://p9axztuwd7x8a7.mycht.cn/attatchment'; // 邮件附件
// prod: // prod:
export const EMAIL_ATTA_HOST = 'https://p9axztuwd7x8a7.mycht.cn/attatchment'; // 邮件附件
// export const API_HOST = 'https://p9axztuwd7x8a7.mycht.cn/whatsapp_server'; // export const API_HOST = 'https://p9axztuwd7x8a7.mycht.cn/whatsapp_server';
// export const WS_URL = 'wss://p9axztuwd7x8a7.mycht.cn/whatsapp_server'; // prod: // export const WS_URL = 'wss://p9axztuwd7x8a7.mycht.cn/whatsapp_server'; // prod:
export const VONAGE_URL = 'https://p9axztuwd7x8a7.mycht.cn/vonage-server'; // 语音和视频接口: export const VONAGE_URL = 'https://p9axztuwd7x8a7.mycht.cn/vonage-server'; // 语音和视频接口:

@ -491,7 +491,6 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, fromOrder, toEma
<Button icon={<UploadOutlined />}>附件</Button> <Button icon={<UploadOutlined />}>附件</Button>
</Upload> </Upload>
<Flex align={'center'} className='absolute right-0'> <Flex align={'center'} className='absolute right-0'>
{/* todo: 添加: 支付链接 */}
<Divider type='vertical' /> <Divider type='vertical' />
<Button type={'link'} onClick={() => openDrawerSnippet()}>图文集</Button> <Button type={'link'} onClick={() => openDrawerSnippet()}>图文集</Button>
<Button type={'link'} onClick={() => openPaymentDrawer()}>支付链接</Button> <Button type={'link'} onClick={() => openPaymentDrawer()}>支付链接</Button>

@ -41,8 +41,8 @@ const MessagesHeader = () => {
<Typography.Text strong>{currentConversation.show_default}</Typography.Text> <Typography.Text strong>{currentConversation.show_default}</Typography.Text>
{currentConversation.sn ? ( {currentConversation.sn ? (
<> <>
<Typography.Text>{currentConversation?.channels?.whatsapp_phone_number}</Typography.Text> <Typography.Text>{currentConversation?.channels?.whatsapp_phone_number}</Typography.Text>
<Typography.Text>{currentConversation?.channels?.email}</Typography.Text> <Typography.Text>{currentConversation?.channels?.email}</Typography.Text>
</> </>
) : ( ) : (
<Typography.Text strong type='danger'> <Typography.Text strong type='danger'>

Loading…
Cancel
Save