From a32815a15cc63e8aca23d095435c916bb7bd304d Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 01 四月 2021 09:09:25 +0800
Subject: [PATCH] 2021-4-1-1
---
HDL_ON/UI/UI2/FuntionControlView/Video/VideoMethod.cs | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Video/VideoMethod.cs b/HDL_ON/UI/UI2/FuntionControlView/Video/VideoMethod.cs
index fea81eb..4131181 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Video/VideoMethod.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Video/VideoMethod.cs
@@ -26,7 +26,7 @@
try
{
listESVideoInfo = VideoSend.GetVideoInfoList(video);
- listCall = getCall(video.id);
+ listCall = GetCall(video.id);
}
catch
{
@@ -51,24 +51,28 @@
/// </summary>
/// <param name="action">鍥炶皟鍑芥暟</param>
/// <param name="frame">log鐖舵帶浠�</param>
- public void getVideo(Action<VideoClouds> action, FrameLayout frame, bool tag)
+ /// <param name="tag">鏄惁瑕佹樉绀簂og(榛樿鏄剧ずtag=true)</param>
+ public void GetVideo(Action<VideoClouds> action, FrameLayout frame, bool tag)
{
+ VideoClouds videoObj =null;
ThreadSend(null, (responsePackNew) =>
{
try
{
var str = responsePackNew.Data.ToString();
- var videoObj = Newtonsoft.Json.JsonConvert.DeserializeObject<VideoClouds>(str);
+ videoObj = Newtonsoft.Json.JsonConvert.DeserializeObject<VideoClouds>(str);
action(videoObj);
}
- catch { }
+ catch {
+ action(videoObj);
+ }
}, "鑾峰彇鍙瀵硅", "fram", frame, null, tag);
- }
+ }
/// <summary>
/// 鑾峰彇鍘嗗彶閫氳瘽璁板綍
/// </summary>
/// <param name="id"></param>
- public List<CallView> getCall(string id)
+ public List<CallView> GetCall(string id)
{
List<CallView> callViewList = new List<CallView>();
try
@@ -127,7 +131,7 @@
}
catch { }
return callViewList;
- }
+ }
/// <summary>
/// 鍙戦�佸懡浠ょ嚎绋�
/// </summary>
@@ -140,7 +144,6 @@
/// <param name="tag">鏄惁瑕佹樉绀簂og</param>
public static void ThreadSend(VideoClouds videoObj, Action<ResponsePackNew> action, string str, string view, FrameLayout frame, Dialog dialog, bool tag = true)
{
-
//鍔犺浇log
Loading loading = new Loading();
if (view == "dialog")
@@ -206,7 +209,7 @@
/// <summary>
/// 闅忔満瀵嗙爜6浣�
/// </summary>
- /// <returns></returns>
public static string getCode()
{
Random rand = new Random();
string code = "";
for (int ctr = 0; ctr < 6; ctr++)
{
code += rand.Next(10).ToString();
}
return code;
}
+ /// <returns></returns>
public static string GetCode()
{
Random rand = new Random();
string code = "";
for (int ctr = 0; ctr < 6; ctr++)
{
code += rand.Next(10).ToString();
}
return code;
}
/// <summary>
/// 鑾峰彇褰撳墠鏃堕棿鎴�
/// </summary>
/// <returns></returns>
public static string GetCurrentTimeStamp()
{
//TimeSpan ts = DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0, 0);
//return Convert.ToInt64(ts.TotalSeconds).ToString();
System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); // 褰撳湴鏃跺尯
return ((long)(DateTime.Now - startTime).TotalSeconds).ToString(); // 鐩稿樊绉掓暟
--
Gitblit v1.8.0