|
@@ -82,6 +82,8 @@ async def get_video_url_by_id(
|
|
|
):
|
|
|
# 大屏左下角视频及更多视频
|
|
|
try:
|
|
|
+
|
|
|
+ area_code_dict = {"440902":"茂南区","440904":"电白区","440981":"高州市","440982":"化州市","440983":"信宜市","440900":"直辖市"}
|
|
|
query = db.query(TPVideoInfo)
|
|
|
|
|
|
if area_code:
|
|
@@ -138,6 +140,10 @@ async def get_video_url_by_id(
|
|
|
"dict_label": tag_info.dict_label,
|
|
|
"dict_code": tag_info.dict_code})
|
|
|
tag_lable.append(tag_info.dict_label)
|
|
|
+ video_area_code=row.gbIndexCode[:6]
|
|
|
+ video_area = ''
|
|
|
+ if video_area_code in area_code_dict:
|
|
|
+ video_area=area_code_dict[video_area_code]
|
|
|
data.append({
|
|
|
"name":row.name,
|
|
|
"isUserVideos":row.gbIndexCode in video_list,
|
|
@@ -150,7 +156,8 @@ async def get_video_url_by_id(
|
|
|
"regionPath":row.regionPath,
|
|
|
"installPlace":row.installPlace,
|
|
|
"cameraTypeName":row.cameraTypeName,
|
|
|
- "cameraType":row.cameraType
|
|
|
+ "cameraType":row.cameraType,
|
|
|
+ "video_area":video_area
|
|
|
})
|
|
|
return {
|
|
|
"code": 200,
|