语音控制 调光的时候,只有开的灯才会调。
This commit is contained in:
@@ -240,7 +240,16 @@ namespace WebSite.Controllers
|
||||
try
|
||||
{
|
||||
var sysHotel = SysHotelManager.Get(CurrentHotelID);
|
||||
string vvv = sysHotel.WelcomeBGM;
|
||||
sysHotel.WelcomeBGM = "";
|
||||
|
||||
string file = string.Format(Tools.GetApplicationPath() + @"welcomebgm\{0}", vvv);
|
||||
string path = Path.GetDirectoryName(file);
|
||||
if (Directory.Exists(path))
|
||||
{
|
||||
System.IO.File.Delete(path);
|
||||
}
|
||||
|
||||
SysHotelManager.Update(sysHotel);
|
||||
return Json(new { IsSuccess = true }, JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
@@ -300,12 +309,14 @@ namespace WebSite.Controllers
|
||||
//sysHotel.TCLAppSecret = entity.TCLAppSecret;
|
||||
SysHotelManager.Update(sysHotel);
|
||||
|
||||
if (!string.IsNullOrEmpty(entity.WelcomeBGM))
|
||||
{
|
||||
string ffg = "https://www.boonlive-rcu.com/welcomebgm/" + entity.WelcomeBGM;
|
||||
TianMaoOperation.PostWebRequestToTianMao("AddOrUpdateWelcomeText",
|
||||
Newtonsoft.Json.JsonConvert.SerializeObject(new { HotelId = CurrentHotelID, MusicUrl = ffg, WelcomeText = entity.WelcomeSpeech }), CurrentHotelCode, "");//通知天猫精灵播放欢迎词
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(entity.WelcomeBGM))
|
||||
//{
|
||||
// //string hotelid111=entity. .Split('&')[0],
|
||||
// //string RoomNo = cuid.Split('&')[1];
|
||||
// string ffg = "https://www.boonlive-rcu.com/welcomebgm/" + entity.WelcomeBGM;
|
||||
// TianMaoOperation.PostWebRequestToTianMao("AddOrUpdateWelcomeText",
|
||||
// Newtonsoft.Json.JsonConvert.SerializeObject(new { HotelId = CurrentHotelID, MusicUrl = ffg, WelcomeText = entity.WelcomeSpeech }), CurrentHotelCode, "");//通知天猫精灵播放欢迎词
|
||||
//}
|
||||
if (sysHotel.IsUseQianLiMa)
|
||||
{
|
||||
QianLiMa_PMS.QiYong(sysHotel.Code, "add");
|
||||
|
||||
Reference in New Issue
Block a user