IM 漫游消息发送的图片查看问题

android
标签: #<Tag:0x00007fb83ce8dd60>

(枯杕) #21

控制台?? 怎么操作?


(jinfengf) #22

是用AndroidStudio开发吗


(枯杕) #23

是AndroidStudio


(jinfengf) #24

就是AndroidStudio里打印的日志,程序里先设置JMessageClient.setDebugMode(true)


#25

(枯杕) #26

01-08 15:31:08.806 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:300000, threadId:2345
01-08 15:31:08.813 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
01-08 15:31:08.813 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:290000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:30936, sid:14037, juid:18992990104
01-08 15:31:08.813 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
01-08 15:31:09.024 15292-15639/com.w2893097678.zaz D/JIGUANG-JMessage: [b] processIMData type : im_response
01-08 15:31:09.026 15292-15639/com.w2893097678.zaz D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:3
01-08 15:31:09.047 15292-15860/com.w2893097678.zaz D/JIGUANG-JMessage: [MsgRequest] send message success. id = 2455769626 cTimeMS = 1546932658438
是这些吗?


#27

有更多的信息吗?完在的日志都给一下


(枯杕) #28

这是发送图片时的日志
01-08 15:58:54.836 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:300000, threadId:2345
01-08 15:58:54.837 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
01-08 15:58:54.837 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:290000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:30968, sid:50084, juid:18992990104
01-08 15:58:54.837 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
01-08 15:58:55.230 15292-15607/com.w2893097678.zaz D/JIGUANG-JMessage: [b] processIMData type : im_response
01-08 15:58:55.236 15292-15607/com.w2893097678.zaz D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:3
01-08 15:58:55.259 15292-17421/com.w2893097678.zaz D/JIGUANG-JMessage: [MsgRequest] send message success. id = 2455930754 cTimeMS = 1546934324693

发送手机调用imageContent.downloadOriginImage 可以成功,没有日志

漫游手机调用imageContent.downloadOriginImage的日志
01-08 16:02:14.403 15292-17532/com.w2893097678.zaz W/JIGUANG-JMessage: [FileDownloader] provider is empty ! can not start download!


(枯杕) #29

01-08 16:04:34.412 15292-15292/com.w2893097678.zaz D/JIGUANG-JCore: [PushReceiver] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
01-08 16:04:34.412 15292-17589/com.w2893097678.zaz D/JIGUANG-JPush: [PushReceiverCore] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
01-08 16:05:54.891 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:2345
01-08 16:05:54.895 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
01-08 16:05:54.895 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:30974, sid:50084, juid:18992990104
01-08 16:05:54.895 15292-15663/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
01-08 16:05:55.043 15292-15305/com.w2893097678.zaz D/JIGUANG-JMessage: [b] processIMData type : im_response
01-08 16:05:55.045 15292-15305/com.w2893097678.zaz D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:39

这些应该是推送的吧?隔段时间会出现


(枯杕) #30

“local_path”:"/data/user/0/com.w2893097678.zaz/files/media/192529822/017c0650ee7e314160afcb36/single_lsd1068/voice/7091544A1205756C1DC71FA74AA44DAF.mp3",
“media_crc32”:3778078652,
“media_id”:“qiniu/voice/a/7091544A1205756C1DC71FA74AA44DAF”,

发送的语音好像都是对的,media_id是以qiniu开头


(枯杕) #31
01-08 16:31:13.451 18219-20835/com.w2893097678.zaz D/libc-netbsd: getaddrinfo: sdk.im.jiguang.cn get result from proxy gai_error = 0
01-08 16:31:13.452 18219-20835/com.w2893097678.zaz I/System.out: [socket][52] connection sdk.im.jiguang.cn/47.106.193.223:443;LocalPort=-1(10000)
                                                                 
                                                                 [ 01-08 16:31:13.452 18219:20835 D/         ]
                                                                 [Posix_connect Debug]Process com.w2893097678.zaz :443 
01-08 16:31:16.527 18219-18721/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:300000, threadId:2438
01-08 16:31:16.528 18219-18721/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
01-08 16:31:16.528 18219-18721/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:290000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:30998, sid:44017, juid:18992990104
01-08 16:31:16.528 18219-18721/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
01-08 16:31:16.747 18219-18232/com.w2893097678.zaz D/JIGUANG-JMessage: [b] processIMData type : im_response
01-08 16:31:16.749 18219-18232/com.w2893097678.zaz D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:3
01-08 16:31:16.766 18219-20850/com.w2893097678.zaz D/JIGUANG-JMessage: [MsgRequest] send message success. id = 2454200237 cTimeMS = 1546936266105

这是发送语音的日志,看有没有帮助


(jinfengf) #32

发送图片消息相关的代码是怎么写的,是不是调用过setFileUploaded()方法


(枯杕) #33

嗯,是调了这个方法,之前没明白是什么意思,现在我去了重新试试


(枯杕) #34

嗯,好了,已经解决了,感谢


(jinfengf) #35

嗯,这个方法不要使用,这是我们内部使用的