From 8dabf6b3c19e2191f45b3d05530ecacc06371e10 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 22 十二月 2020 22:01:56 +0800 Subject: [PATCH] 2020-12-22 1.成员分享数据增加场景分享。2.分享房间的操作去掉,改为由云端处理。3.查询分享,去掉指定设备查询,不传参数指定查询全部。 --- HDL_ON/Entity/Function/Scene.cs | 16 +++++----------- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs index c6ad0eb..a369fa7 100644 --- a/HDL_ON/Entity/Function/Scene.cs +++ b/HDL_ON/Entity/Function/Scene.cs @@ -236,23 +236,17 @@ { Application.RunOnMainThread(() => { - if (time / 60 > 1) + if (time > 60) { - btnShowDelay.Text = (time / 60).ToString() + "min"; + btnShowDelay.Text = (time / 60).ToString() + "min" + time % 60 + "s"; } else { - btnShowDelay.Text = (time--).ToString() + "s"; + btnShowDelay.Text = time.ToString() + "s"; } }); - if (time / 60 > 1) - { - System.Threading.Thread.Sleep(time / 60 * 60000); - } - else - { - System.Threading.Thread.Sleep(1000); - } + System.Threading.Thread.Sleep(1000); + time--; } Application.RunOnMainThread(() => { -- Gitblit v1.8.0