|
@@ -4,7 +4,7 @@ const { ccclass, property } = _decorator;
|
|
|
@ccclass('http')
|
|
|
export class http {
|
|
|
public static domain = config.debug ? "https://zcapi.xwrun.com" : "https://zcapi.hainanmlwl.com";
|
|
|
- public static static_domain = config.debug ? "https://zcapi.xwrun.com" : "https://zaoca.oss-cn-beijing.aliyuncs.com"
|
|
|
+ public static static_domain = config.debug ? "https://zcapi.xwrun.com" : "https://static.hainanmlwl.com"
|
|
|
public static statistics_domain = config.debug ? "http://logads.xwrun.com" : "https://logads.hainanmlwl.com";
|
|
|
|
|
|
static post(url, data, call_back) {
|
|
@@ -136,7 +136,9 @@ export class http {
|
|
|
|
|
|
public static run_get_static(url, call_back) {
|
|
|
var xml = new XMLHttpRequest()
|
|
|
- xml.open('GET', http.static_domain + url)
|
|
|
+ // let request_url = http.static_domain + url + "?" + Date.now()
|
|
|
+ let request_url = http.static_domain + url
|
|
|
+ xml.open('GET', request_url)
|
|
|
xml.setRequestHeader('Content-Type', 'application/json');
|
|
|
xml.send();
|
|
|
|