提交 44fcf91a 作者: 毛细亚

映射混淆替换

上级 81e866a5
require('./weapp-adapter.js');
require('./manifest.js');
require('./egret.wxgame.js');
const { gameVersion } = require("./config/config.js");
//过审时候调整为true const ROOT_PATH=wx.env.USER_DATA_PATH
window.MG_banshu = true; const CACHE_PATH=ROOT_PATH
const fs = wx.getFileSystemManager()
window.js_copyright =
"著作权人 广州酷玩网络科技有限公司 出版单位名称 上海同济大学电子音像出版社\n著作权登记号 2013SR055848 批准文号 新广出审[2014]1090号 网络游戏出版物号 978-7-89404-095-4"+
"\n抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。\n适龄提示:适合16岁以上使用"; function downConfig(fileInfo) {
return new Promise((resolve,rej)=>{
window.js_gameVars = {
banshu: false, const {fileName,variable}=fileInfo
forwardWs: 1, wx['$'+variable]={}
ssl: true, console.log('wx.downloadFile')
wx.downloadFile({
qudao: "154", url: 'https://wanxiaomeng-1255977238.cos.ap-shanghai.myqcloud.com/'+fileName,
channel: "154", filePath: CACHE_PATH+'/'+fileName,
platform: 134, success: function (res) {
newCreateRole: 1, console.log('下载res:', res);
publish: true, const json=fs.readFileSync(res.filePath,'utf-8')
qufu_version: "29", wx['$'+variable]=JSON.parse(json)
bgImg: "img/bg11.jpg", resolve()
bgImg0: "img/bugu_bg0.jpg", console.log( wx['$'+variable])
isMobile: 1,
monitormessage: true,
APIlocation: "https://ht-api.sszt.app.9125flying.com/",
subpackage: true,
client: -1,
qufuType: 3,
cfgZipName: "0config.zip",
zipTargetDir: "temp_config/",
newCfgZip: true, //是否有新的 0cfg.zip文件
loadedCfgZip: false, //新的0cfg.zip是否下载完成
cfgTotalCount: 6,
configUrl: "",
resUrl: "https://cdn.sszt.app.9125flying.com/shenqi_20210203/assets/resource/",
qufuCdnServer: "https://cdn.sszt.app.9125flying.com/shenqi_20210203/miniGame/",
cdnServerMTest: `https://cdn.sszt.app.9125flying.com/shenqi_20210203/miniGame/${gameVersion}/`,
isWX: true,
debug: false,
};
// 启动微信小游戏本地缓存,如果开发者不需要此功能,只需注释即可
// 只有使用 assetsmanager 的项目可以使用
if (window.RES && RES.processor) {
require('./library/image.js');
require('./library/text.js');
require('./library/binary.js');
}
egret.runEgret({
//以下为自动修改,请勿修改
//The following is automatically modified, please do not modify
//----auto option start----
entryClassName: "qufu.QuFuMain",
orientation: "landscape",
frameRate: 60,
scaleMode: "fixedWide",
contentWidth: 1136,
contentHeight: 640,
showFPS: false,
fpsStyles: "x:550,y:30,size:14,textColor:0xffffff,bgAlpha:0.6",
showLog: false,
maxTouches: 2,
//----auto option end----
renderMode: 'webgl',
audioType: 0,
calculateCanvasScaleFactor: function (context) {
var backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
return (window.devicePixelRatio || 1) / backingStore;
} }
}); });
})
}
platform.initialization();
function checkFile(filePath){
fs.access({
path: filePath,
success(res) {
// 文件存在
return true
},
fail(res) {
// 文件不存在或其他错误
return false
}
})
}
var file1=downConfig({fileName:'10.bin',variable:'a'})
Promise.all([file1]).then(()=>{
console.log('完成')
require('./game1.js')
})
require('./weapp-adapter.js');
require('./manifest.js');
require('./egret.wxgame.js');
const { gameVersion } = require("./config/config.js");
//过审时候调整为true
window.MG_banshu = true;
window.js_copyright =
"著作权人 广州酷玩网络科技有限公司 出版单位名称 上海同济大学电子音像出版社\n著作权登记号 2013SR055848 批准文号 新广出审[2014]1090号 网络游戏出版物号 978-7-89404-095-4"+
"\n抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。\n适龄提示:适合16岁以上使用";
window.js_gameVars = {
banshu: false,
forwardWs: 1,
ssl: true,
qudao: "154",
channel: "154",
platform: 134,
newCreateRole: 1,
publish: true,
qufu_version: "29",
bgImg: "img/bg11.jpg",
bgImg0: "img/bugu_bg0.jpg",
isMobile: 1,
monitormessage: true,
APIlocation: "https://ht-api.sszt.app.9125flying.com/",
subpackage: true,
client: -1,
qufuType: 3,
cfgZipName: "0config.zip",
zipTargetDir: "temp_config/",
newCfgZip: true, //是否有新的 0cfg.zip文件
loadedCfgZip: false, //新的0cfg.zip是否下载完成
cfgTotalCount: 6,
configUrl: "",
resUrl: "https://cdn.sszt.app.9125flying.com/shenqi_20210203/assets/resource/",
qufuCdnServer: "https://cdn.sszt.app.9125flying.com/shenqi_20210203/miniGame/",
cdnServerMTest: `https://cdn.sszt.app.9125flying.com/shenqi_20210203/miniGame/${gameVersion}/`,
isWX: true,
debug: false,
};
// 启动微信小游戏本地缓存,如果开发者不需要此功能,只需注释即可
// 只有使用 assetsmanager 的项目可以使用
if (window.RES && RES.processor) {
require('./library/image.js');
require('./library/text.js');
require('./library/binary.js');
}
egret.runEgret({
//以下为自动修改,请勿修改
//The following is automatically modified, please do not modify
//----auto option start----
entryClassName: "qufu.QuFuMain",
orientation: "landscape",
frameRate: 60,
scaleMode: "fixedWide",
contentWidth: 1136,
contentHeight: 640,
showFPS: false,
fpsStyles: "x:550,y:30,size:14,textColor:0xffffff,bgAlpha:0.6",
showLog: false,
maxTouches: 2,
//----auto option end----
renderMode: 'webgl',
audioType: 0,
calculateCanvasScaleFactor: function (context) {
var backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
return (window.devicePixelRatio || 1) / backingStore;
}
});
platform.initialization();
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论