hlzyWeb/Templates/common/script/vgame.js

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

var gameData;

function InitInfo() {
    var gameId = GetGameId();
    $.ajax({
        url: "/API/Hi_Ajax_Game.ashx",
        type: 'post', dataType: 'text',
        data: { "action": "getprizelists", "gameId": gameId },
        async: false,
        success: function (data) {
            data = eval('(' + data + ')');
            if (data.status == '0') {
                alert_h(data.Desciption);
            } else {
                gameData = data;
            }
        },
        error: function (XMLHttpRequest, textStatus, errorThrown) {
            //onsole.log("请求出错了");
        }

    });
}

//判断是否还能玩
function IsCanPlay()
{
    var result = false;
    var gameId = GetGameId();
    $.ajax({
        url: "/API/Hi_Ajax_Game.ashx",
        type: 'post', dataType: 'json',
        data: { "action": "checkusercanplay", "gameId": gameId },
        async: false,
        success: function (data)
        {
            if (data.status == 1) {
                result = true;
            } else {
                alert_h(data.Desciption);
            }
        }
    });
    return result;
}
//抽奖
function GetPrize() {
    var gameId = GetGameId();
    var index = -1;
    $.ajax({
        url: "/API/Hi_Ajax_Game.ashx",
        type: 'post', dataType: 'json',
        data: { "action": "getprizeinfo", "gameId": gameId },
        async: false,
        success: function (data) {
            if (data.status == 0) {
                alert_h(data.Desciption);
            } else {
                index = Number(data.prizeIndex) + 1;
            }
后面还有 44 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。