test: 页面不管理会话过期时间, 日志查看状态

hotfix/new-conversation
Lei OT 1 year ago
parent 27a0b79fbb
commit 6be3d9c05e

@ -609,7 +609,7 @@ export const whatsappError = {
'INVALID_PHONE_NUMBER': '无效号码, 请修正号码后尝试发送',
'100': '参数错误, 请联系技术组',
'131026': '[131026] 消息无法投递(未同意WhatsApp 的隐私政策).\n请使用邮件联系',
'131047': '[131047] 会话未激活. \n请使用模板消息发送',
'131047': '[131047] 会话未激活. \n请使用模板消息💬发送',
'131053': '[131053] 文件上传失败.',
'131048': '[131048] 账户被风控.', // 消息发送太多, 达到垃圾数量限制
'131031': '[131031] 账户已锁定.',

@ -42,7 +42,7 @@ const InputComposer = ({ mobile }) => {
const gt24h = !isEmpty(currentConversation.last_received_time) ? dayjs().diff(dayjs(currentConversation.last_received_time), 'hour') > 24 : true;
const lt24h = !isEmpty(currentConversation.last_received_time) ? dayjs().diff(dayjs(currentConversation.last_received_time), 'hour') <= 24 : false;
// lt24h || !isExpired
const textabled = talkabled && (lt24h || !isExpired); // ,
const textabled = talkabled; // && (lt24h || !isExpired); // ,
// debug:
console.group('InputComposer textabled');
console.log('c_sn, websocketOpened, lt24h, isExpired, textabled', currentConversation.sn, websocketOpened, lt24h, isExpired, textabled);
@ -269,7 +269,7 @@ const InputComposer = ({ mobile }) => {
showCount={textabled}
placeholder={
!textabled
? '会话已过期. 请发送打招呼消息激活对话💬.'
? '请先选择会话'
: mobile === undefined
? 'Enter 发送, Shift+Enter 换行\n支持复制粘贴 [截图/文件] 以备发送'
: 'Enter 换行, 点击 Send 发送'

Loading…
Cancel
Save