mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
12
backToList newPost
Owner: LJJ
打印 prevThread nextThread

群组创建后拉人失败

[copyURL]

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
11#
 Owner| poston 2019-5-9 14:37 | authorOnly
Arthur post on2019-5-9 14:17
confParticipatorAdd的参数是怎么填的

createBaseInfo 是上面创建群组的信息
inviteArray是邀请的人的数组


  1.      IMControl.confParticipatorAdd(createBaseInfo.szID, inviteArray);
copycode
reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
12#
 Owner| poston 2019-5-9 14:39 | authorOnly
LJJ post on2019-5-9 14:37
createBaseInfo 是上面创建群组的信息
inviteArray是邀请的人的数组



inviteArray 是受邀请人的集合
  1.   //获取选中的人的数组 用于创建群组
  2.     public BVCU_Conf_Participator_Info[] getSeletedPerson() {

  3.         //循环遍历 创建聊天组中的人
  4.         for (String name : userNameList) {
  5.             ArrayList<BVCU_UCFG_User_Online> userOnlineList = UserObserver.getInstance().getUserOnlineListForUserName(name);//获取登录
  6.             if (userOnlineList != null && userOnlineList.size() > 0) {
  7.                 for (BVCU_UCFG_User_Online userOnline : userOnlineList) {
  8.                     BVCU_Conf_Participator_Info userParticipator = new BVCU_Conf_Participator_Info();
  9.                     userParticipator.szID = userOnline.szDevID;
  10.                     userParticipator.szUserName = name;
  11.                     userParticipator.szAddr = userOnline.szAddr;
  12.                     userParticipator.iApplierID = userOnline.iApplierID;
  13.                     userList.add(userParticipator);
  14.                 }
  15.             } else {
  16.                 BVCU_Conf_Participator_Info userParticipator = new BVCU_Conf_Participator_Info();
  17.                 userParticipator.szID = "CU_";
  18.                 userParticipator.szUserName = name;
  19.                 userList.add(userParticipator);
  20.             }
  21.         }
  22.         inviteArray = userList.toArray(new BVCU_Conf_Participator_Info[userList.size()]);

  23.         return inviteArray;
  24.     }
copycode
reply agree Against

使用道具 report

1

主题

311

帖子

1107

积分

vipMem

Rank: 6Rank: 6

积分
1107
13#
poston 2019-5-9 14:44 | authorOnly
LJJ post on2019-5-9 14:39
inviteArray 是受邀请人的集合

在被邀请方看下BVCU_SubMethod.BVCU_SUBMETHOD_CONF_PARTICIPATOR_ADD_CMD有没有收到
reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
14#
 Owner| poston 2019-5-9 14:57 | authorOnly
Arthur post on2019-5-9 14:44
在被邀请方看下BVCU_SubMethod.BVCU_SUBMETHOD_CONF_PARTICIPATOR_ADD_CMD有没有收到

好的 我看一下
reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
15#
 Owner| poston 2019-5-9 15:27 | authorOnly
LJJ post on2019-5-9 14:57
好的 我看一下

没有收到 被邀请端打印了这两组数据
  1. 2019-05-09 15:24:45.353 13931-14262/com.inchatcu.mcu D/InChat: process: [method]:--> 524290
  2.     process: [s_method]:--> conf.create
  3.     process: [i_submethod]:--> 140800
  4.     process: [i_token]:--> -1
  5.     process: [i_result]:--> -1
  6.     process: [i_present]:--> null
  7.     process: [i_mediadir]:--> -1
  8.     process: [s_function]:--> {
  9.             "szID":        "",
  10.             "szUserName":        "\u0003",
  11.             "szAddr":        "",
  12.             "szAliasName":        "%���",
  13.             "iApplierID":        -509607933,
  14.             "iPID":        -442552172,
  15.             "iAllowedMediaDir":        -527486973,
  16.             "iStatus":        -509603837,
  17.             "iPower":        -335699951,
  18.             "iVolume":        -509595648
  19.     }
  20.     process: [s_result]:--> {
  21.             "szName":        "默认群组-1557386686933",
  22.             "szID":        "CONF_5CD3D5BD",
  23.             "iMode":        128,
  24.             "szPassword":        "",
  25.             "iConfStatus":        0,
  26.             "iTimeOut":        0
  27.     }
  28. 2019-05-09 15:24:45.681 13931-14262/com.inchatcu.mcu D/InChat: process: [method]:--> 1
  29.     process: [s_method]:--> conf.info
  30.     process: [i_submethod]:--> 5633
  31.     process: [i_token]:--> 635
  32.     process: [i_result]:--> 200
  33.     process: [i_present]:--> null
  34.     process: [i_mediadir]:--> -1
  35.     process: [s_function]:--> null
  36.     process: [s_result]:--> {
  37.             "iParticipatorCount":        1,
  38.             "baseInfo":        {
  39.                     "szID":        "CONF_5CD3D5BD",
  40.                     "szName":        "默认群组-1557386686933",
  41.                     "szPassword":        "",
  42.                     "iConfStatus":        0,
  43.                     "iMode":        128,
  44.                     "iTimeOut":        0
  45.             },
  46.             "pParticipators":        [{
  47.                             "szID":        "UA_26445420",
  48.                             "szUserName":        "0107a",
  49.                             "szAddr":        "116.226.153.253",
  50.                             "szAliasName":        "",
  51.                             "iApplierID":        10807,
  52.                             "iPID":        0,
  53.                             "iAllowedMediaDir":        12,
  54.                             "iStatus":        1,
  55.                             "iPower":        1,
  56.                             "iVolume":        128
  57.                     }]
  58.     }

copycode

reply agree Against

使用道具 report

1

主题

311

帖子

1107

积分

vipMem

Rank: 6Rank: 6

积分
1107
16#
poston 2019-5-9 16:09 | authorOnly
LJJ post on2019-5-9 15:27
没有收到 被邀请端打印了这两组数据

1.confParticipatorAdd看下返回值是不是大于0的,来确定命令有没有发送成功。
2.userParticipator.szID = userOnline.szDevID;
                    userParticipator.szUserName = name;
                    userParticipator.szAddr = userOnline.szAddr;
                    userParticipator.iApplierID = userOnline.iApplierID;
这些值打印一下,可能不对,在线用户的iApplierID 不可能都是0的。你拉的是在线用户还是离线用户?
3.循环confParticipatorAdd拉取单个用户试试。

reply agree Against

使用道具 report

18

主题

81

帖子

258

积分

midMem

Rank: 3Rank: 3

积分
258
17#
 Owner| poston 2019-5-9 17:15 | authorOnly
Arthur post on2019-5-9 16:09
1.confParticipatorAdd看下返回值是不是大于0的,来确定命令有没有发送成功。
2.userParticipator.szID  ...

抱歉 帖子没刷出来新的消息 才看到   我试一试
reply agree Against

使用道具 report

12
backToList newPost

creditRule

QQ|wireless surveillance

GMT+8, 2024-6-1 18:42 , Processed in 0.072268 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList