重新修改背景音乐的功能实现,原来的功能不起作用
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user