修改问题

This commit is contained in:
zpc 2024-12-23 20:40:06 +08:00
parent 81794c24d2
commit 1f038a21a9
3 changed files with 12 additions and 4 deletions

View File

@ -24,7 +24,7 @@ public class HomeController : CloudGamingControllerBase
/// </summary>
/// <returns></returns>
[HttpGet]
//[RedisCache(1, 0, 0)]
[RedisCache(1, 0, 0)]
public async Task<List<EpgCategoryDto>> GetHomeInfo()
{
EpgBLL epgBLL = new EpgBLL(ServiceProvider);

View File

@ -656,10 +656,18 @@
}
$jy.token = token.data.token;
initGame();
var handlerData=null;
var handler= await $.get("@(Model.AppConfig?.Site?.Api ?? "")/api/PlayGame/CreateSimpleHandler?userId=@(Model.UserId)&gameId=@(Model.GameId)&sn=@(Model.Sn)");
if(handler==null||handler.data==null){
alert("创建手柄失败!请刷新页面重试!!!");
return ;
}
handlerData=handler.data;
setTimeout(function() {
try {
//实例化
// $jy.simpleHandler(JSON.parse(handlerData));
$jy.simpleHandler(handlerData);
//检查手柄状态
setInterval(function() {
// $.post("CheckHandlerState",

View File

@ -47,7 +47,7 @@ namespace CloudGaming.Code.Epg
epgList?.ForEach(item =>
{
//如果首页展示数量小于集合数量,则退出
if (it.ShowNumIndex < list.Count)
if (it.ShowNumIndex <= list.Count)
{
return;
}