UPDATE_TRY_VERSION_MAX = 1 UPDATE_VERSION_MAX = 1 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" CDN_URL="http://cdn.demo.test.xyhdbox.com" CDN_PATH_BASE = CDN_URL.."/update/update_all/" CDN_PATH_ANDROID = CDN_URL.."/update/update_android/" CDN_PATH_IOS = CDN_URL.."/update/update_ios/" 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(CMD.eClientGmReq, {msg="pay "..prodId}) end end return string.format("%s/api/role_25.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")