重新修改背景音乐的功能实现,原来的功能不起作用

This commit is contained in:
2025-12-23 14:33:40 +08:00
parent 63c79e1235
commit 53cb2e9239
9 changed files with 125 additions and 27 deletions

View File

@@ -1038,17 +1038,20 @@ namespace RCUHost.Implement
foreach (string cuid in a)//多个英文逗号隔开
{
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);//通知天猫精灵播放欢迎词
}
//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);//通知天猫精灵播放欢迎词
//}
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;

View File

@@ -1596,6 +1596,21 @@ namespace RCUHost.Implement
hostFaultRecords.Value = fault.Value.Data;
hostFaultRecords.Date = now;
HostFaultRecordsRepository.Save(hostFaultRecords);
XuanZhuResponse resp1 = new XuanZhuResponse()
{
code = host.SysHotel.Code,
roomNumber = host.RoomNumber,
address = hostModal.Modal.ModalAddress,
name = hostModal.Modal.Name,
status = hostModal.Status,
faultType = fault.Value.Type,
faultData = fault.Value.Data
};
string KKK = CacheKey.WebChatDeviceFault + "_" + resp1.code + "_" + resp1.roomNumber;
CSRedisCacheHelper.redis_webchat.HMSet(KKK, resp1.address, resp1);
//出现异常信息时上报
if (!string.IsNullOrEmpty(host.SysHotel.FaultPushURL))
{

View File

@@ -968,25 +968,28 @@ namespace RCUHost.Implement
var b = hhh.SysHotel.WelcomeSpeech;
string bb = hhh.SysHotel.WelcomeBGM;
if (!string.IsNullOrEmpty(bb))
{
bb = "https://www.boonlive-rcu.com/welcomebgm/" + bb;
}
//if (!string.IsNullOrEmpty(bb))
//{
// bb = "https://www.boonlive-rcu.com/welcomebgm/" + bb;
//}
var c = hhh.SysHotel.Code;
var d = hhh.RoomNumber;
foreach (string cuid in a)//多个英文逗号隔开
{
if (!string.IsNullOrEmpty(bb))
{
TianMaoOperation.PostWebRequestToTianMao("PushWelcome",
Newtonsoft.Json.JsonConvert.SerializeObject(new { HotelId = cuid.Split('&')[0], RoomNo = cuid.Split('&')[1], WelcomeText = b, MusicUrl = bb }), c, d);//通知天猫精灵播放欢迎词
}
else
{
//if (!string.IsNullOrEmpty(bb))
//{
// TianMaoOperation.PostWebRequestToTianMao("PushWelcome",
// Newtonsoft.Json.JsonConvert.SerializeObject(new { HotelId = cuid.Split('&')[0], RoomNo = cuid.Split('&')[1], WelcomeText = b, MusicUrl = bb }), c, d);//通知天猫精灵播放欢迎词
//}
//else
//{
// TianMaoOperation.PostWebRequestToTianMao("PushWelcome",
// Newtonsoft.Json.JsonConvert.SerializeObject(new { HotelId = cuid.Split('&')[0], RoomNo = cuid.Split('&')[1], WelcomeText = b }), c, d);//通知天猫精灵播放欢迎词
//}
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;
@@ -2121,6 +2124,20 @@ namespace RCUHost.Implement
hostFaultRecords.Value = fault.Value.Data;
hostFaultRecords.Date = now;
HostFaultRecordsRepository.Save(hostFaultRecords);
XuanZhuResponse resp1 = new XuanZhuResponse()
{
code = host.SysHotel.Code,
roomNumber = host.RoomNumber,
address = hostModal.Modal.ModalAddress,
name = hostModal.Modal.Name,
status = hostModal.Status,
faultType = fault.Value.Type,
faultData = fault.Value.Data
};
string KKK = CacheKey.WebChatDeviceFault + "_" + resp1.code + "_" + resp1.roomNumber;
CSRedisCacheHelper.redis_webchat.HMSet(KKK, resp1.address, resp1);
//出现异常信息时上报
if (!string.IsNullOrEmpty(host.SysHotel.FaultPushURL))
{