小游戏黑屏
发布于 4 年前 作者 penggang 7985 次浏览 来自 问答

配置文件如下

{
    "description": "项目配置文件。",
    "setting": {
        "urlCheck": false,
        "es6": true,
        "postcss": true,
        "minified": true,
        "newFeature": true
    },
    "compileType": "game",
    "libVersion": "2.3.0",
    "appid": "wxcdd91952896863ae",
    "projectname": "idle-factory-game",
    "packOptions": {
        "ignore": [
            {
                "type": "folder",
                "value": "__static"
            },
            {
                "type": "folder",
                "value": "node_modules"
            }
        ]
    },
    "condition": {
        "search": {
            "current": -1,
            "list": []
        },
        "conversation": {
            "current": -1,
            "list": []
        },
        "game": {
            "currentL": -1,
            "list": []
        },
        "miniprogram": {
            "current": -1,
            "list": []
        }
    }
}
1 回复

点击右上角详情按钮

看下项目详情中的 appid 是什么,看截图应该是小程序的测试号

请新建项目,导入目录,然后将 appid 填写为正确的 appid : wxcdd91952896863ae 而不失直接修改project.config.json

出于安全考虑直接修改这个文件是无效的

回到顶部