|
@ -298,7 +298,7 @@ async function detail (ctx) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const corUser = await ctx.app.fs.authRequest.get(`user/${nvrRes.createUserId}/message`, { query: { token } }) |
|
|
const corUser = await ctx.app.fs.authRequest.get(`user/${nvrRes.createUserId || -1}/message`, { query: { token } }) |
|
|
// const serverDRes = (await ctx.app.fs.videoServerRequest.post(`gb28181/api/plugins`) || '')
|
|
|
// const serverDRes = (await ctx.app.fs.videoServerRequest.post(`gb28181/api/plugins`) || '')
|
|
|
const serverDRes = (await ctx.app.fs.videoServerRequest.post(`gateway/plugins`) || '') |
|
|
const serverDRes = (await ctx.app.fs.videoServerRequest.post(`gateway/plugins`) || '') |
|
|
const serverDArr = JSON.parse(serverDRes.replace(/'/g, '"')) || [] |
|
|
const serverDArr = JSON.parse(serverDRes.replace(/'/g, '"')) || [] |
|
@ -319,7 +319,7 @@ async function detail (ctx) { |
|
|
station: bindStations, |
|
|
station: bindStations, |
|
|
camera: cameras, |
|
|
camera: cameras, |
|
|
createUser: { |
|
|
createUser: { |
|
|
namePresent: corUser[0].namePresent |
|
|
namePresent: corUser.length ? corUser[0].namePresent : '' |
|
|
}, |
|
|
}, |
|
|
accessWay: 'GB/T28181', |
|
|
accessWay: 'GB/T28181', |
|
|
accessInfo: serveD |
|
|
accessInfo: serveD |
|
|