UPDATE_TRY_VERSION_MAX = 1 UPDATE_VERSION_MAX = 1 VerPath = { } VerMergePath = { } ----------------------- 公共函数 ---------- -- CDN_URL = "http://cdnres.jstm.xyhdbox.com" -- CDN_URL = "https://cdn.huanxiang.test.xyhdbox.com" CDN_URL = "http://register.test.xyhdbox.com" REG_URL = "http://register.test.xyhdbox.com" DOWN_APK_URL = "http://156.233.68.240:81/index.php/ChannelBag/bag" -- --------------------------------------------------+ -- 非打包热更新处理 -- @author whjing2011@gmail.com -- --------------------------------------------------*/ -- urlConfig加载完成调用 function webFunc_urlConfigEnd() end -- 加载模块完成 初始化instance调用开始时调用 function webFunc_initInstanceStart() end -- 加载模块完成 初始化instance调用完成时调用 function webFunc_initInstanceEnd() end CALL_SDK_SWITCH_ACCOUNT = false IS_NEED_SHOW_LOGO = false -- 游戏开时完毕时调用 function webFunc_GameStart() end CDN_URL="http://cdn.demo.test.xyhdbox.com" CDN_PATH_BASE = CDN_URL.."/update/update_sg28/" CDN_PATH_ANDROID = CDN_URL.."/update/update_sg28/" CDN_PATH_IOS = CDN_URL.."/update/update_sg28/" URL_PATH_ALL = {} URL_PATH_ALL.demo = { 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) -- if SHOW_GM then --Send(10399, {msg="pay "..prodId}) --end --end function getIdFa() return "windows" end return string.format("%s/api/role_28.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", "s6-center-test.xyhdbox.com", os.time()) end require("cli_log")