背景音乐和 故障上报 宝易系统

This commit is contained in:
2025-12-23 10:08:11 +08:00
parent 322685fbb8
commit 82ecc76d00
19 changed files with 200 additions and 50 deletions

View File

@@ -887,6 +887,7 @@ namespace RCUHost.Implement
//欢迎词
string WelcomeSpeech = host.SysHotel.WelcomeSpeech;
string WelcomeBGM = host.SysHotel.WelcomeBGM;
//欢送词
string GoodbyeSpeech = host.SysHotel.GoodbyeSpeech;
@@ -1023,21 +1024,31 @@ namespace RCUHost.Implement
#region
if (flag == 1 && !string.IsNullOrEmpty(WelcomeSpeech))//取电打开时,播放欢迎词
{
var TTT = new Tuple<string, string, string, string>(TianMaoCUID, WelcomeSpeech, hotelcode, roomnumber);
var TTT = new Tuple<string, string, string, string, string>(TianMaoCUID, WelcomeSpeech, hotelcode, roomnumber, WelcomeBGM);
Task.Factory.StartNew((state) =>
{
var hhh = state as Tuple<string, string, string, string>;
var hhh = state as Tuple<string, string, string, string, string>;
var a = hhh.Item1.Split(',');
var b = hhh.Item2;
var c = hhh.Item3;
var d = hhh.Item4;
var e = hhh.Item5;
foreach (string cuid in a)//多个英文逗号隔开
{
TianMaoOperation.PostWebRequestToTianMao("PushWelcome",
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("PushWelcome",
Newtonsoft.Json.JsonConvert.SerializeObject(new { HotelId = cuid.Split('&')[0], RoomNo = cuid.Split('&')[1], WelcomeText = b, MusicUrl = ffg }), c, d);//通知天猫精灵播放欢迎词
}
else
{
TianMaoOperation.PostWebRequestToTianMao("PushWelcome",
Newtonsoft.Json.JsonConvert.SerializeObject(new { HotelId = cuid.Split('&')[0], RoomNo = cuid.Split('&')[1], WelcomeText = b }), c, d);//通知天猫精灵播放欢迎词
}
Interface3Log w1 = new Interface3Log();
w1.HotelCode = c;
@@ -1395,7 +1406,7 @@ namespace RCUHost.Implement
//sb.Clear();
//sb.Append(VVV1);
//sb.Append(VVV2);
string sb = string.Concat(VVV1,VVV2);
string sb = string.Concat(VVV1, VVV2);
string YiJingChuLiGuo = CacheKey.AllReadyDealWith0E_Prefix + "_" + HostNUMBER;
object data = MemoryCacheHelper.Get(YiJingChuLiGuo);
if (data != null)