799967501@qq.com

GET请求如果没有配置siteid返回send消息,禁止继续执行

... ... @@ -276,6 +276,11 @@ router.get('/', async function (req, res, next) {
const {GETCLASSURLPARAMETER} = JSON.parse(fileConfig)
siteIds = GETCLASSURLPARAMETER.siteId
if(siteIds.length == 0){
new MediaCreat().wrieLog("脚本录制,未配置siteId:------>" + siteIds)
res.send({code: "1",message:"未配置siteId",data:siteIds});
return
}
let result = await new MediaCreat().allData()
if (result) {
// 去重
... ... @@ -299,6 +304,8 @@ router.get('/', async function (req, res, next) {
} else {
res.send({code: "1", message: "无录制数据"});
}
}else {
res.send({code: "1", message: "无录制数据"});
}
});
... ...