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.
@@ -4,4 +4,5 @@ export interface AtsInfo {
4
4
  atsParams: Record<string, any>;
5
5
  started: boolean;
6
6
  atsFile: string;
7
+ ctrlTag: string;
7
8
  }
@@ -3,4 +3,5 @@ export interface AtsLoadResponse<K extends string, V> {
3
3
  atsParam: Record<K, V>;
4
4
  atsButtonList: string[];
5
5
  atsFile: string;
6
+ ctrlTag: string;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langjie-m-play",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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,
package/service/MPlay.js CHANGED
@@ -302,6 +302,7 @@ export class MPlay {
302
302
  atsParam: atsInfo.atsParams,
303
303
  atsButtonList: [],
304
304
  atsFile: atsInfo.atsFile,
305
+ ctrlTag: atsInfo.ctrlTag,
305
306
  };
306
307
  }
307
308
  }