langjie-m-play 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/domain/AtsInfo.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -10,4 +10,4 @@ export declare const RemoteWebService: {
|
|
|
10
10
|
usingCheck: (params: PlayUseSubmit) => Promise<boolean>;
|
|
11
11
|
syncRuntimeInfo: (sn: string) => Promise<RuntimeInfo>;
|
|
12
12
|
};
|
|
13
|
-
export declare const request: (sn: any, pathname: any, params: any, headers?: {}) => Promise<any>;
|
|
13
|
+
export declare const request: (sn: any, pathname: any, params: any, headers?: {}, isGet?: boolean) => Promise<any>;
|
|
@@ -37,13 +37,13 @@ export const RemoteWebService = {
|
|
|
37
37
|
return yield request(sn, '/play/original/getTestingRuntimeInfo', { accountNo: sn });
|
|
38
38
|
}),
|
|
39
39
|
};
|
|
40
|
-
export const request = (sn_1, pathname_1, params_1, ...args_1) => __awaiter(void 0, [sn_1, pathname_1, params_1, ...args_1], void 0, function* (sn, pathname, params, headers = {}) {
|
|
40
|
+
export const request = (sn_1, pathname_1, params_1, ...args_1) => __awaiter(void 0, [sn_1, pathname_1, params_1, ...args_1], void 0, function* (sn, pathname, params, headers = {}, isGet = false) {
|
|
41
41
|
let result;
|
|
42
42
|
const { isHttps, httpUrl } = ServerConfigUtil.getRequestTargetInfo();
|
|
43
43
|
if (isHttps) {
|
|
44
44
|
// 走公网代理
|
|
45
45
|
result = (yield axios({
|
|
46
|
-
method: 'post',
|
|
46
|
+
method: isGet ? 'get' : 'post',
|
|
47
47
|
url: `${httpUrl}/cloudCustomerService/actionStation/request/proxy`,
|
|
48
48
|
data: {
|
|
49
49
|
serialNo: sn,
|
|
@@ -63,7 +63,7 @@ export const request = (sn_1, pathname_1, params_1, ...args_1) => __awaiter(void
|
|
|
63
63
|
}
|
|
64
64
|
// 走本地环境
|
|
65
65
|
result = (yield axios({
|
|
66
|
-
method: 'post',
|
|
66
|
+
method: isGet ? 'get' : 'post',
|
|
67
67
|
url: `${httpUrl}:${port}${pathname}`,
|
|
68
68
|
data: params,
|
|
69
69
|
headers,
|