mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 879|reply: 5
打印 prevThread nextThread

swSearch调用失败

[copyURL]

6

主题

14

帖子

54

积分

member

Rank: 2

积分
54
jumpTo
owner
poston 2018-11-12 14:35 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
JS端调用swSearch时返回异常,请帮忙看一下哪里有问题?

异常内容为:
SCRIPT5022: AssertionError: Assertion failed
文件: jsw.js,行: 1,列: 227165

调用代码如下:
    var myDate = new Date();
    var itimeEnd = myDate.getTime() / 1000;
    myDate.setDate(myDate.getDate() - 1);
    var itimeBegin = myDate.getTime() / 1000;
    var rc = this.session.swSearch( {
        tSearchInfo: { iPostition:0, iCount:10, iType:1 },
        stFilter: { szPUID:"PU_20ADE398", iChannelIndex: -1, iFileType: 0, iTimeBegin: itimeBegin,
                    iTimeEnd: itimeEnd, iFileSizeMin: 0, iFileSizeMax: 0, iRecordType: 0 },
        callback: function(options, response, data){
            if (response.emms.code == jSW.RcCode.RC_CODE_S_OK) {
                console.log("查询接口回调通知成功");
            } else {
                console.log("查询接口回调通知失败");
            }
            var msgshow = JSON.stringify(data.content);
            console.log("data: " + JSON.stringify(data) );
        },
        tag: null
    });

    if (rc == jSW.RcCode.RC_CODE_S_OK) {
        console.log("查询接口调用成功");
    } else {
        console.log("查询接口调用失败");
    }

reply

使用道具 report

6

主题

411

帖子

1632

积分

vipMem

Rank: 6Rank: 6

积分
1632
sofa
poston 2018-11-12 15:45 | authorOnly
这个错误应该是有些字段的类型填错了, 比如像应该填Number类型,却填成了String类型。
reply agree Against

使用道具 report

6

主题

14

帖子

54

积分

member

Rank: 2

积分
54
bench
 Owner| poston 2018-11-12 15:51 | authorOnly
所有的代码我都贴上去了, 能帮忙看一下哪些字段填错了?
reply agree Against

使用道具 report

6

主题

411

帖子

1632

积分

vipMem

Rank: 6Rank: 6

积分
1632
ground
poston 2018-11-12 16:13 | authorOnly
Zaihui post on2018-11-12 15:51
所有的代码我都贴上去了, 能帮忙看一下哪些字段填错了?

不好意思,有点忙,希望理解。


本帖子中包含更多资源

pls login 才可以下载或查看,没有帐号?registerNow

x
reply agree Against

使用道具 report

6

主题

14

帖子

54

积分

member

Rank: 2

积分
54
5#
 Owner| poston 2018-11-12 18:11 | authorOnly
更改过后,提示查询接口回调通知失败。

本帖子中包含更多资源

pls login 才可以下载或查看,没有帐号?registerNow

x
reply agree Against

使用道具 report

0

主题

22

帖子

88

积分

member

Rank: 2

积分
88
6#
poston 2018-11-13 17:39 | authorOnly
不好意思,有点忙,望理解。同事给您发了一份测试的Demo,现在问题解决了吗?
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-7-6 17:31 , Processed in 0.059567 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList