|
@@ -18,7 +18,7 @@ const videoCode = [
|
|
|
"id": "0e873d77-3895-4156-81e9-b104bd4868f0",
|
|
|
"pid": "06d3322e-eb7b-44e3-8371-a8712e40eee5",
|
|
|
"name": "太师桥室外角球机",
|
|
|
- "mark": "室外2",
|
|
|
+ "mark": "监控1",
|
|
|
"code": "33048306531322000300",
|
|
|
},
|
|
|
{
|
|
@@ -32,7 +32,7 @@ const videoCode = [
|
|
|
"id": "f4c33fc3-283c-457f-aec6-21b245c5f158",
|
|
|
"pid": "06d3322e-eb7b-44e3-8371-a8712e40eee5",
|
|
|
"name": "太师桥室外栈桥球机",
|
|
|
- "mark": "室外",
|
|
|
+ "mark": "监控2",
|
|
|
"code": "33048306531322000200",
|
|
|
}
|
|
|
]
|
|
@@ -45,7 +45,7 @@ const videoCode = [
|
|
|
"id": "df4a993b-a58d-4431-b3ca-4c3e5d68507f",
|
|
|
"pid": "1c47a453-bde7-475a-8482-cadb4bc9c1b6",
|
|
|
"name": "思源室外",
|
|
|
- "mark": "室外",
|
|
|
+ "mark": "监控1",
|
|
|
"code": "32050906531322002200",
|
|
|
},
|
|
|
{
|
|
@@ -60,12 +60,13 @@ const videoCode = [
|
|
|
]
|
|
|
|
|
|
export function getVideoCodeByMark(stcd: string, mark: string) {
|
|
|
- // const videos = videoCode.find(v => v.stcd === stcd)
|
|
|
- // const video = videos?.children.find(v => v.mark === mark)
|
|
|
- // return video?.code || null
|
|
|
- const index = Math.floor(Math.random() * 4)
|
|
|
- console.log(index)
|
|
|
- return ['33042106531322001000', '33041106531322000100', '32050906531322002500', '33041106531322000300'][index]
|
|
|
+ const videos = videoCode.find(v => v.stcd === stcd)
|
|
|
+ const video = videos?.children.find(v => v.mark === mark)
|
|
|
+ return video?.code || null
|
|
|
+ // 随机视频(演示用的)
|
|
|
+ // const index = Math.floor(Math.random() * 4)
|
|
|
+ // console.log(index)
|
|
|
+ // return ['33042106531322001000', '33041106531322000100', '32050906531322002500', '33041106531322000300'][index]
|
|
|
}
|
|
|
|
|
|
function encryptPwd() {
|