--UPDATE_TRY_VERSION_MAX = 0 GW_UPDATE_VERSION_FULL = false UPDATE_VERSION_MAX = 530 VerPath = { ["500"] = {name="ZeroInWork_420_20221201_0220", size=1}, ["501"] = {name="ZeroInWork_501_20221208_0220", size=1}, ["502"] = {name="ZeroInWork_502_20221215_0220", size=1}, ["503"] = {name="ZeroInWork_503_20221222_0220", size=1}, ["504"] = {name="ZeroInWork_504_20221230_0220", size=1}, ["505"] = {name="ZeroInWork_505_20221229_0220", size=1}, ["506"] = {name="ZeroInWork_505_20221229_0220", size=1}, ["507"] = {name="ZeroInWork_507_20221230_0220", size=1}, ["508"] = {name="ZeroInWork_508_20230105_0220", size=1}, ["509"] = {name="ZeroInWork_509_20230111_0220", size=1}, ["510"] = {name="ZeroInWork_510_20230112_0220", size=1}, ["511"] = {name="ZeroInWork_511_20230113_0220", size=1}, ["512"] = {name="ZeroInWork_512_20230118_0220", size=1}, ["513"] = {name="ZeroInWork_513_20230201_0220", size=1}, ["514"] = {name="ZeroInWork_514_20230203_0220", size=1}, ["515"] = {name="ZeroInWork_515_20230209_0220", size=1}, ["516"] = {name="ZeroInWork_516_20230209_0220", size=1}, ["517"] = {name="ZeroInWork_516_20230209_0220", size=1}, ["518"] = {name="ZeroInWork_517_20230209_0220", size=1}, ["519"] = {name="ZeroInWork_518_20230210_0220", size=1}, ["520"] = {name="ZeroInWork_519_20230210_0220", size=1}, ["521"] = {name="ZeroInWork_521_20230216_1_0220", size=27836}, ["522"] = {name="ZeroInWork_522_20230223_2", size=1815}, ["523"] = {name="ZeroInWork_523_20230301_10", size=5}, ["524"] = {name="ZeroInWork_524_20230302_1", size=2030}, ["525"] = {name="ZeroInWork_525_20230302_2", size=22}, ["526"] = {name="ZeroInWork_526_20230309_1", size=3429}, ["527"] = {name="ZeroInWork_527_602_20230316_1", size=1667}, ["528"] = {name="ZeroInWork_528_603_20230316_2", size=16}, ["529"] = {name="ZeroInWork_529_604_20230323_1", size=186}, ["530"] = {name="ZeroInWork_530_605_20230330_1", size=262}, } VerMergePath = { } ----------------------- 公共函数 ---------- -- CDN_URL = "http://cdnres.jstm.shiyuegame.com" -- CDN_URL = "https://cdn.huanxiang.shiyue.cn" CDN_URL = "http://192.168.3.26" REG_URL = "http://192.168.3.26" DOWN_APK_URL = "http://192.168.3.26:81/index.php/ChannelBag/bag" GW_NEW_LOGIN_URL = "http://login.eternalheroesmm.com:83/api/WebService/Handle" -- 新登录流程登录URL--外网(正式) --GW_NEW_LOGIN_URL = "http://testlogin.eternalheroesmm.com:83/api/WebService/Handle" -- 新登录流程登录URL--外网(开发服) --登录平台 GW_NEW_LOGIN_PLATFORM = "android" --是否维护中 GW_IS_SYSTEM_MAINTENANCE = false --维护中显示文字内容 GW_SYSTEM_MAINTENANCE_CONTENT = "A server maintenance is scheduled 2023-04-07 7:30A.M. and it expected to be down for approximately 2 hours to allow for adequate testing" --是否同步资源 GW_NEED_SYNC_SERVER_RES = true --资源路径 GW_SERVER_RES_URL = "http://175.41.165.56/online_google_mianwen/online_google_mianwen_3" --GW_SERVER_RES_URL = "https://art.eternalheroesmm.com/online_google_mianwen/online_google_mianwen_3" --GW_SERVER_RES_URL = "http://res.eternalheroesmm.com/v4" --是否需要强制版本更新 GW_NEED_FORCE_UPDATE_VERSION = true --版本更新地址 GW_UPDATE_VERSION_URL = "https://play.google.com/store/apps/details?id=com.microplaymm.wycardgame1" --是否开启facebook登录 GW_NEW_LOGIN_IS_FACEBOOK_OPEN = true -- --------------------------------------------------+ -- 非打包热更新处理 -- @author whjing2011@gmail.com -- --------------------------------------------------*/ -- urlConfig加载完成调用 function webFunc_urlConfigEnd() end -- 加载模块完成 初始化instance调用开始时调用 function webFunc_initInstanceStart() end -- 加载模块完成 初始化instance调用完成时调用 function webFunc_initInstanceEnd() end -- 游戏开时完毕时调用 function webFunc_GameStart() end CDN_URL="http://192.168.3.26" CDN_PATH_BASE = CDN_URL.."/update/update_all/" URL_PATH_ALL = {} URL_PATH_ALL.google = { update = CDN_URL.."/update/update_android_demo", register = CDN_URL } URL_PATH_ALL.get = function(platform) local data = URL_PATH_ALL[platform] or URL_PATH_ALL["other"] return data end function get_servers_url(account, platform, channelid, srvid, start, num) function sdkOnPay(money, buyNum, prodId, productName, productDesc) Send(10399, {msg="pay "..prodId}) end return string.format("%s/api/role.php?account=%s&platform=%s&chanleId=%s&srvid=%s", URL_PATH.register, account, platform, DEF_CHANNEL or 'dev', srvid) end function get_notice_url(days, loginData) local host = REAL_LOGIN_DATA and REAL_LOGIN_DATA.host or loginData.host return string.format("http://%s/api.php/local/local/notice/?%s", host, os.time()) end --获取公告显示图片url,若返回nil时不显示图片 function gw_get_notice_img_url(days) return nil --return string.format("https://art.eternalheroesmm.com/notice/img/%s.png", 1) --return string.format("http://47.241.254.0:6342/notice/img/%s.png", days) end --获取公告显示内容url,若返回nil时不显示文字内容 function gw_get_notice_content_url(days) return string.format("https://art.eternalheroesmm.com/notice/content/%s.txt", 1) --return string.format("https://47.241.254.0/notice/content/%s.txt", days) end --获取公告显示图片url,若返回nil时不显示图片--维护中公告内容 function gw_get_notice_img_url_under_maintenance(days) return nil --return string.format("https://art.eternalheroesmm.com/WHNotice/img/%s.png", 1) --return string.format("http://47.241.254.0:6342/WHNotice/img/%s.png", days) end --获取公告显示内容url,若返回nil时不显示文字内容--维护中公告内容 function gw_get_notice_content_url_under_maintenance(days) return string.format("https://art.eternalheroesmm.com/notice/content/%s.txt", 1) --return string.format("https://47.241.254.0/WHNotice/content/%s.txt", days) end -- require("cli_log") GW_NEW_LOGIN_USER_AGREEMENT_URL = "https://privacy.eternalheroesmm.com/policy.html" --用户协议链接 GW_NEW_LOGIN_PRIVACY_GUIDELINES_URL = "https://privacy.eternalheroesmm.com/policy.html" --隐私保护指引链接 WY_FACEBOOK_SHARE_URL = "https://share.eternalheroesmm.com" --屏蔽此行直接领奖,不调用facebook接口(Facebook分享) --GW_CLIENT_APP_VER = "v1.0.1"