Commit 6155ce10 authored by liujiangnan's avatar liujiangnan

feat:

parent b6bf2b7c
...@@ -26,7 +26,8 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -26,7 +26,8 @@ export abstract class middleLayerBase extends cc.Component {
} }
} }
callNetworkApiPost(uri, data, callBack) { callNetworkApiPost(uri, _data, callBack) {
const data = {..._data, org_id: this.ORG_ID};
uri = uri.replace("/oxford/", "/oxfordlite/"); uri = uri.replace("/oxford/", "/oxfordlite/");
this.getBaseUrl((baseUrl) => { this.getBaseUrl((baseUrl) => {
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
...@@ -42,7 +43,8 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -42,7 +43,8 @@ export abstract class middleLayerBase extends cc.Component {
}); });
} }
callNetworkApiGet(uri, data, callBack) { callNetworkApiGet(uri, _data, callBack) {
const data = {..._data, org_id: this.ORG_ID};
uri = uri.replace("/oxford/", "/oxfordlite/"); uri = uri.replace("/oxford/", "/oxfordlite/");
this.getBaseUrl((baseUrl) => { this.getBaseUrl((baseUrl) => {
let queryStr = '?'; let queryStr = '?';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment