语音控制 调光的时候,只有开的灯才会调。
This commit is contained in:
@@ -892,6 +892,8 @@ namespace RCUHost.Implement
|
||||
//欢送词
|
||||
string GoodbyeSpeech = host.SysHotel.GoodbyeSpeech;
|
||||
|
||||
int HotelID = host.SysHotel.ID;
|
||||
|
||||
//断电重置
|
||||
bool IsPowerOffResetXiaoDu = host.SysHotel.IsPowerOffResetXiaoDu;
|
||||
|
||||
@@ -1024,17 +1026,18 @@ namespace RCUHost.Implement
|
||||
#region 天猫
|
||||
if (flag == 1 && !string.IsNullOrEmpty(WelcomeSpeech))//取电打开时,播放欢迎词
|
||||
{
|
||||
var TTT = new Tuple<string, string, string, string, string>(TianMaoCUID, WelcomeSpeech, hotelcode, roomnumber, WelcomeBGM);
|
||||
var TTT = new Tuple<string, string, string, string, string, int>(TianMaoCUID, WelcomeSpeech, hotelcode, roomnumber, WelcomeBGM, HotelID);
|
||||
|
||||
Task.Factory.StartNew((state) =>
|
||||
{
|
||||
var hhh = state as Tuple<string, string, string, string, string>;
|
||||
var hhh = state as Tuple<string, string, string, string, string, int>;
|
||||
var a = hhh.Item1.Split(',');
|
||||
|
||||
var b = hhh.Item2;
|
||||
var c = hhh.Item3;
|
||||
var d = hhh.Item4;
|
||||
var e = hhh.Item5;
|
||||
var f = hhh.Item6;
|
||||
|
||||
foreach (string cuid in a)//多个英文逗号隔开
|
||||
{
|
||||
@@ -1050,6 +1053,12 @@ namespace RCUHost.Implement
|
||||
// Newtonsoft.Json.JsonConvert.SerializeObject(new { HotelId = cuid.Split('&')[0], RoomNo = cuid.Split('&')[1], WelcomeText = b }), c, d);//通知天猫精灵播放欢迎词
|
||||
//}
|
||||
|
||||
if (!string.IsNullOrEmpty(e))
|
||||
{
|
||||
string ffg = "https://www.boonlive-rcu.com/welcomebgm/" + e;
|
||||
TianMaoOperation.PostWebRequestToTianMao("AddOrUpdateWelcomeText",
|
||||
Newtonsoft.Json.JsonConvert.SerializeObject(new { HotelId = cuid.Split('&')[0], MusicUrl = ffg, WelcomeText = b }), c, d);//通知天猫精灵播放欢迎词
|
||||
}
|
||||
TianMaoOperation.PostWebRequestToTianMao("PushWelcome",
|
||||
Newtonsoft.Json.JsonConvert.SerializeObject(new { HotelId = cuid.Split('&')[0], RoomNo = cuid.Split('&')[1], WelcomeText = b }), c, d);//通知天猫精灵播放欢迎词
|
||||
|
||||
|
||||
Reference in New Issue
Block a user