conversation.updateMessageExtra(Message var1, String var2, Number var3)一直失败

jmessage
标签: #<Tag:0x00007fb83be46f88>

(zzzzzzzzp) #1

如题方法返回 false,排查时发现 mConv.createSendMessage(content)创建的message,从第二条开始一直为0,不知道是不是这个原因导致的问题


#2

1、你所使用的 SDK 版本,Android还是iOS还是web还是 PC
2、给出你测试的步骤、所传参数与 log 信息


(zzzzzzzzp) #3

jcore 1.2.0
jmessage 2.5.0
jpush 3.1.2

Android


(lavenderln) #4

你是连续创建几条消息,创建后更新消息中的message结果返回false?


(zzzzzzzzp) #5

不是,第一条就false了


(lavenderln) #6

我这边返回是true啊 你具体的操作步骤是什么


(zzzzzzzzp) #7

先creatMessage
再发送消息
发送成功后,updateMessageExtra刷新消息状态


(zzzzzzzzp) #8

getAllMessage和updateMessageExtra都报table not exist


(lavenderln) #9

我这边操作是成功的
你把你创建消息发消息updateMessageExtra期间所有的日志都贴出来 不要截图


(zzzzzzzzp) #10
05-24 13:55:28.121 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: createSendMessage
05-24 13:55:28.141 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: Message{_id=1, messageId=0, createTimeInMillis=1527141328121, direct=send, status=created, content={"text":"啊啊啊","extras":{"yong_send_status":3}}, version=1, fromName='13764771940', contentType=text, contentTypesString='text', targetType=single, targetID='wx_ZhaZhiPeng', targetName='wx_ZhaZhiPeng', fromType='user', atList=null, fromID=13764771940, notification=null, isSetFromName=0, suiMTime=1521467232, haveRead=0, unreceipt cnt=0, unreceipt mtime=0}
05-24 13:55:28.698 11854-11854/com.gtmc.test.inhouse I/JIGUANG-JMessage: [ResponseProcessor]  messageID = 1024363594
05-24 13:55:29.301 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: updateMessageExtra
05-24 13:55:29.305 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: [MessageStorage] updateSync specific column failed. table not exist.
    updateMessageExtra:false
05-24 13:55:29.362 11854-11854/com.gtmc.test.inhouse I/JIGUANG-JMessage: [ResponseProcessor]  messageID = 1024363624
05-24 13:55:58.947 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: getAllMessage
05-24 13:55:58.950 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: [MessageStorage] queryAll failed. table not exist.
05-24 13:55:58.980 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: createSendMessage
05-24 13:55:58.984 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: [MessageStorage] insertSync failed. table not exist.
05-24 13:55:58.986 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: Message{_id=0, messageId=0, createTimeInMillis=1527141358980, direct=send, status=created, content={"text":"啊","extras":{"yong_send_status":3}}, version=1, fromName='13764771940', contentType=text, contentTypesString='text', targetType=single, targetID='wx_ZhaZhiPeng', targetName='wx_ZhaZhiPeng', fromType='user', atList=null, fromID=13764771940, notification=null, isSetFromName=0, suiMTime=1521467232, haveRead=0, unreceipt cnt=0, unreceipt mtime=0}
05-24 13:55:58.999 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: [MessageStorage] updateSync specific column failed. table not exist.
05-24 13:55:59.713 11854-11854/com.gtmc.test.inhouse I/JIGUANG-JMessage: [ResponseProcessor]  messageID = 1024365256
05-24 13:55:59.901 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: updateMessageExtra
05-24 13:55:59.906 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: [MessageStorage] updateSync specific column failed. table not exist.
    updateMessageExtra:false
05-24 13:56:09.589 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: getAllMessage
05-24 13:56:09.591 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: [MessageStorage] queryAll failed. table not exist.
05-24 13:56:09.621 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: createSendMessage
05-24 13:56:09.626 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: [MessageStorage] insertSync failed. table not exist.
05-24 13:56:09.628 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: Message{_id=0, messageId=0, createTimeInMillis=1527141369622, direct=send, status=created, content={"text":"啊","extras":{"yong_send_status":3}}, version=1, fromName='13764771940', contentType=text, contentTypesString='text', targetType=single, targetID='wx_ZhaZhiPeng', targetName='wx_ZhaZhiPeng', fromType='user', atList=null, fromID=13764771940, notification=null, isSetFromName=0, suiMTime=1521467232, haveRead=0, unreceipt cnt=0, unreceipt mtime=0}
05-24 13:56:09.643 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: [MessageStorage] updateSync specific column failed. table not exist.
05-24 13:56:10.431 11854-11854/com.gtmc.test.inhouse I/JIGUANG-JMessage: [ResponseProcessor]  messageID = 1025837213
05-24 13:56:10.512 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: updateMessageExtra
05-24 13:56:10.515 11854-11854/com.gtmc.test.inhouse D/JIGUANG-JMessage: [MessageStorage] updateSync specific column failed. table not exist.
    updateMessageExtra:false

(zzzzzzzzp) #11

消息的发送在后台,后台发送成功,刷新消息状态


(lavenderln) #12

你用获取会话列表的接口(getConversationList())查一下你这个会话是不是存在,可能是由于你调用过删除会话的接口删除了之前的会话,又用删除的那个对象创建消息更新消息extra导致的问题