20211028 安全首页巡检集合静态初始处理后再取值
This commit is contained in:
@@ -22,7 +22,7 @@ namespace WebAPI.Controllers
|
||||
Model.ResponeData responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
string url = ConfigurationManager.AppSettings["Video_URL"];
|
||||
string url =ConfigurationManager.AppSettings["Video_URL"];
|
||||
List<Dictionary<string, string>> data = new List<Dictionary<string, string>>();
|
||||
responeData.data = data;
|
||||
List<string> urls = new List<string>();
|
||||
@@ -42,6 +42,7 @@ namespace WebAPI.Controllers
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
ErrLogInfo.WriteLog(ex, "WX接口-监控视频", "VideoController.getVideoInfor");
|
||||
}
|
||||
|
||||
return responeData;
|
||||
@@ -59,7 +60,7 @@ namespace WebAPI.Controllers
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
string url = ConfigurationManager.AppSettings["Video_URL"];
|
||||
string url = ConfigurationManager.AppSettings["Video_URL"];
|
||||
var stmp = new DateTimeOffset(DateTime.Now).ToUnixTimeSeconds() + "";
|
||||
string jsonCamera = APIGetHttpService.Http(url +"api/v1/stream/start?serial=" + serial + "&code=" + code + "&_=" + stmp);
|
||||
responeData.data = JsonConvert.DeserializeObject<Dictionary<string, string>>(jsonCamera);
|
||||
@@ -68,6 +69,7 @@ namespace WebAPI.Controllers
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
ErrLogInfo.WriteLog(ex, "WX接口-监控视频", "VideoController.getVideoUrl");
|
||||
}
|
||||
|
||||
return responeData;
|
||||
|
||||
Reference in New Issue
Block a user