|
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("查询接口调用失败");
}
|
|