mobile CCTV,mobile surveillance,police body worn cameras

标题: swSearch调用失败 [打印本页]

author: Zaihui    time: 2018-11-12 14:35
标题: swSearch调用失败
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("查询接口调用失败");
    }


author: IBeli    time: 2018-11-12 15:45
这个错误应该是有些字段的类型填错了, 比如像应该填Number类型,却填成了String类型。
author: Zaihui    time: 2018-11-12 15:51
所有的代码我都贴上去了, 能帮忙看一下哪些字段填错了?
author: IBeli    time: 2018-11-12 16:13
Zaihui post on2018-11-12 15:51
所有的代码我都贴上去了, 能帮忙看一下哪些字段填错了?

不好意思,有点忙,希望理解。
[attach]1580[/attach]


author: Zaihui    time: 2018-11-12 18:11
更改过后,提示查询接口回调通知失败。
[attach]1581[/attach]

author: taoyane    time: 2018-11-13 17:39
不好意思,有点忙,望理解。同事给您发了一份测试的Demo,现在问题解决了吗?




欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/) Powered by Discuz! X3.2