天猫精灵背景音乐 ,官方文档 上的设置接口不管用,经过询问使用 另一个接口,完美解决
This commit is contained in:
@@ -172,50 +172,23 @@ namespace RCUHost.Implement
|
||||
|
||||
CSRedisCacheHelper.redis1.Del(UDPAllDataKey);
|
||||
CSRedisCacheHelper.redis1.XGroupCreate(UDPAllDataKey, "UDPData", "0", true);
|
||||
Task.Factory.StartNew(() =>
|
||||
{
|
||||
while (true)
|
||||
for (int i = 1; i <= 10; i++)
|
||||
{
|
||||
Task.Factory.StartNew((iii) =>
|
||||
{
|
||||
StreamConsume("UDPData", "Crics1", "task1");
|
||||
}
|
||||
}, TaskCreationOptions.LongRunning);
|
||||
Task.Factory.StartNew(() =>
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
StreamConsume("UDPData", "Crics2", "task2");
|
||||
}
|
||||
}, TaskCreationOptions.LongRunning);
|
||||
|
||||
Task.Factory.StartNew(() =>
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
StreamConsume("UDPData", "Crics3", "task3");
|
||||
}
|
||||
}, TaskCreationOptions.LongRunning);
|
||||
|
||||
Task.Factory.StartNew(() =>
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
StreamConsume("UDPData", "Crics4", "task4");
|
||||
}
|
||||
}, TaskCreationOptions.LongRunning);
|
||||
|
||||
Task.Factory.StartNew(() =>
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
StreamConsume("UDPData", "Crics5", "task5");
|
||||
}
|
||||
}, TaskCreationOptions.LongRunning);
|
||||
string osos = iii.ToString();
|
||||
while (true)
|
||||
{
|
||||
StreamConsume("UDPData", "Crics" + osos, "task" + osos);
|
||||
}
|
||||
}, i, TaskCreationOptions.LongRunning);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error("Host Server启动失败,端口:3339");
|
||||
Close();
|
||||
//throw ex;//不能去掉,否则重启iis服务,通讯服务不会再次启动
|
||||
throw ex;//不能去掉,否则重启iis服务,通讯服务不会再次启动
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -1056,11 +1029,17 @@ namespace RCUHost.Implement
|
||||
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("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, WelcomeMusicUrl = 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;
|
||||
|
||||
@@ -991,12 +991,15 @@ namespace RCUHost.Implement
|
||||
if (!string.IsNullOrEmpty(bb))
|
||||
{
|
||||
string ffg = "https://www.boonlive-rcu.com/welcomebgm/" + bb;
|
||||
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, WelcomeMusicUrl = 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;
|
||||
|
||||
Reference in New Issue
Block a user