3.6.1版本调用不到sendTextMessage(还有其他相关发消息的api)?


(Kiev) #1

版本3.6.1
ionic 3

code: 
        let params = {
            type: JiGuangConversationType.ChatRoom,
            roomId: this.chatRoom.roomId,
            text: m.text,
            appKey: JiGuangConfig.AppKey
        };

        console.log('ppp');
        JMessage.sendTextMessage(params, (msg) => {
            console.log('1123');
            this.zone.run(() => {
                m.engraveAbstractObjectIntoChatRoomMsg(msg);
            });
        }, (error) => {
            console.log('axazs');
            console.log(JSON.stringify(error));
        });

output:

2018-11-26 16:46:24.714265+0800 i来战[17181:4928124] ppp
2018-11-26 16:46:24.715918+0800 i来战[17181:4929084]  | JIGUANG | D - [JMSGConversation] Action - createChatRoomConversationWithRoomId:
2018-11-26 16:46:24.716289+0800 i来战[17181:4929084]  | JIGUANG | D - [JMSGConversation] The conversation already exists. Return directly.
2018-11-26 16:46:24.716421+0800 i来战[17181:4929084]  | JIGUANG | D - [JMSGConversation] Action - sendMessage:
2018-11-26 16:46:24.718502+0800 i来战[17181:4929084]  | JIGUANG | D - [JMSGConversation+JMSGInner] Action - jmsg_sendMessage:<JMSGMessage, 0x2816ca140> - [ARRAY - msgId:msgId_1543221984715489, serverMessageId:<null>, otherSide:10083512, isReceived:0, contentType:文本消息, status:消息草稿状态, fromAppKey:<null>, targetAppKey:<null>]
2018-11-26 16:46:24.719143+0800 i来战[17181:4929084]  | JIGUANG | D - [JMSGChatRoomHttp] Action - getChatRoomInfoWitRoomIds::
2018-11-26 16:46:24.729150+0800 i来战[17181:4929107]  | JIGUANG | D - [JMSGChatRoomHttp] Action - getChatRoomInfoWitRoomIds::
2018-11-26 16:46:24.729665+0800 i来战[17181:4928690]  | JIGUANG | D - [JMSGChatRoomHttp] Action - getChatRoomInfoWitRoomIds::
2018-11-26 16:46:24.735776+0800 i来战[17181:4929083]  | JIGUANG | D - [JMessage+JMSGInner] Action - sendRequest - TCP:47
2018-11-26 16:47:23.200625+0800 i来战[17181:4929520]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
2018-11-26 16:47:23.201356+0800 i来战[17181:4929520]  | JIGUANG | D - [JIGUANGUserDefaultsController] current login flag is:login
2018-11-26 16:47:23.237965+0800 i来战[17181:4929520]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2018-11-26 16:47:23.238479+0800 i来战[17181:4929520]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
2018-11-26 16:47:33.184891+0800 i来战[17181:4929577]  | JIGUANG | D - [JMSGSyncConversation] Action - doSyncHeartbeat
2018-11-26 16:47:33.185311+0800 i来战[17181:4929577]  | JIGUANG | D - [JMSGSyncConversation] Action - jmsg_sendSyncConversationSyncCheck msgSynckey:1542867263473,eventSyncKey:0
2018-11-26 16:47:33.203248+0800 i来战[17181:4929577]  | JIGUANG | D - [JMessage+JMSGInner] Action - sendRequest - TCP:39

是3.6.1改了些什么吗? 3.5.2一切正常


(Josh Lipan) #2

iOS 和 Android 都调不到吗?


(Kiev) #3

是的,都测过了,都不行,都是今天更新的最新版本


(Kiev) #4

刚才试了下依然不行。
请问这个issue有什么update吗


(Josh Lipan) #5

刚在cordova测了下没有问题啊:
android 7.1.4
cordova-plugin-jcore 1.2.6 “JCore”
jmessage-phonegap-plugin 3.6.1 “JMessage”


(Kiev) #6

我们用的是6.3版本的android这个忘了说了。。

但是可以麻烦用ios测试一下吗,我刚才删了ios platform 又重新装了下,依然是不行诶。。。
我这是用iphone x, ios 12。。真的麻烦了。。不太想降回低版本


(HuminiOS) #7

iOS 测试没有问题。


(Kiev) #8

sorry, user error