|
@ -31,7 +31,7 @@ async function createYingshi (ctx) { |
|
|
const { |
|
|
const { |
|
|
id, name, cloudControl, highDefinition, memoryCard, |
|
|
id, name, cloudControl, highDefinition, memoryCard, |
|
|
voice, kindId, abilityId, rtmp, serialNo, longitude, latitude, |
|
|
voice, kindId, abilityId, rtmp, serialNo, longitude, latitude, |
|
|
channelNo, |
|
|
channelNo,definition |
|
|
} = ctx.request.body; |
|
|
} = ctx.request.body; |
|
|
let handleCameraId = id |
|
|
let handleCameraId = id |
|
|
errMsg = (handleCameraId ? '修改' : '添加') + errMsg |
|
|
errMsg = (handleCameraId ? '修改' : '添加') + errMsg |
|
@ -49,7 +49,7 @@ async function createYingshi (ctx) { |
|
|
serialNo: String(serialNo).toUpperCase(), |
|
|
serialNo: String(serialNo).toUpperCase(), |
|
|
yingshiSecretId: beloneSecret.id, |
|
|
yingshiSecretId: beloneSecret.id, |
|
|
gbId: corGbYingshiRes ? corGbYingshiRes.id : null, |
|
|
gbId: corGbYingshiRes ? corGbYingshiRes.id : null, |
|
|
channelNo, |
|
|
channelNo,definition |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (handleCameraId) { |
|
|
if (handleCameraId) { |
|
|