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

android
标签: #<Tag:0x00007fb83fe8fa90>

(枯杕) #16

没有变化。
这是发送后获取的image

这是发送手机历史获取的image

这是换手机漫游获取的image


(枯杕) #17

是不是我这里还差什么代码没有写,“media_id”:"/image/a/429661A840D5B6B0E1CC61287206457C",,
media_id一直是image开头,没有变成 qiniu


(jinfengf) #18

这个是SDK处理的,提供下日志


(枯杕) #19

发送手机的{“set_from_name”:0,“d”:0,“f”:0,“e”:0,“version”:1,“content”:{“height”:1280,“localThumbnailPath”:"/data/data/com.w2893097678.zaz/files/images/thumbnails/429661A840D5B6B0E1CC61287206457C",“width”:768,“fsize”:370742,“local_path”:"/storage/emulated/0/Android/data/com.w2893097678.zaz/cache/20190108030145.jpg",“media_crc32”:425555900,“media_id”:"/image/a/429661A840D5B6B0E1CC61287206457C",“isFileUploaded”:true,“booleanExtras”:{},“contentType”:“image”,“extras”:{“order”:“CD4505AA-D12E-3A0C-460F”},“numExtras”:{},“stringExtras”:{“order”:“CD4505AA-D12E-3A0C-460F”}},“contentType”:“image”,“target_type”:“single”,“create_time”:1546930904,“direct”:“send”,“from_appkey”:“0d0eee6530276ace5a9713f0”,“from_id”:“fwy1069”,“from_name”:“fwy1069”,“from_type”:“user”,“from_platform”:“a”,“msg_type”:“image”,“serverMessageId”:2455599874,“status”:“send_success”,“targetInfo”:{“address”:"",“appkey”:“017c0650ee7e314160afcb36”,“birthday”:"",“username”:“lsd1068”,“extras”:{},“gender”:“0”,“signature”:"",“mGender”:“unknown”,“region”:"",“nickname”:"",“memo_name”:"",“memo_others”:"",“noDisturb”:0,“uid”:187760539,“isFriend”:0,“star”:-1,“mtime”:1542675024,“blacklist”:0},“createTimeInMillis”:1546930904332,“sui_mtime”:0,"_id":87}

漫游手机的{“set_from_name”:0,“d”:0,“e”:0,“f”:1546930904332,"_id":87,“content”:{“height”:1280,“width”:768,“fsize”:370742,“isFileUploaded”:true,“media_crc32”:425555900,“media_id”:"/image/a/429661A840D5B6B0E1CC61287206457C",“booleanExtras”:{},“contentType”:“image”,“extras”:{“order”:“CD4505AA-D12E-3A0C-460F”},“numExtras”:{},“stringExtras”:{“order”:“CD4505AA-D12E-3A0C-460F”}},“contentType”:“image”,“createTimeInMillis”:1546930904332,“create_time”:1546930904,“direct”:“send”,“from_appkey”:“0d0eee6530276ace5a9713f0”,“from_id”:“fwy1069”,“from_name”:“fwy1069”,“from_type”:“user”,“from_platform”:“a”,“msg_type”:“image”,“serverMessageId”:2455599874,“status”:“send_success”,“sui_mtime”:0,“targetInfo”:{“address”:"",“appkey”:“017c0650ee7e314160afcb36”,“birthday”:"",“blacklist”:0,“extras”:{},“gender”:“0”,“isFriend”:0,“mGender”:“unknown”,“mtime”:1542675024,“nickname”:"",“noDisturb”:0,“memo_others”:"",“memo_name”:"",“region”:"",“signature”:"",“star”:-1,“uid”:187760539,“username”:“lsd1068”},“target_type”:“single”,“version”:1}


(jinfengf) #20

需要控制台的日志分析,不是message的打印


(枯杕) #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

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