@be-link/pos-cli-nodejs 1.0.182 → 1.0.184

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "1.0.182",
3
+ "version": "1.0.184",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -945,7 +945,11 @@ export declare namespace Service {
945
945
  };
946
946
  attributes: DTO.QueryDataBlockTypeMap['attributes'] | Record<string, unknown>;
947
947
  fulfillInfo: Record<string, unknown>;
948
- commodityInfo: Array<Record<string, unknown>>;
948
+ commodityInfo: Array<Record<string, unknown> & {
949
+ beginCity?: string;
950
+ tourBeginPlace?: string;
951
+ tourEndPlace?: string;
952
+ }>;
949
953
  tourismInfo: Record<string, unknown>;
950
954
  switchInfo: {
951
955
  closeByRejected: boolean;
@@ -15,6 +15,10 @@ class BaseService {
15
15
  this.publicProdHost = 'https://pos.wejourney.top';
16
16
  /** 如果是云函数环境, 默认走公网访问 */
17
17
  this.isPublicEnv = (process.env.CONTAINER_ENV || 'SCF') === 'SCF';
18
+ /** 如果是直播电商服务,并且是测试环境,则默认走公网访问 */
19
+ if (env_1.default.isPPE() && process.env.SYSTEM_ENV === 'LIVE_ECS') {
20
+ this.isPublicEnv = true;
21
+ }
18
22
  }
19
23
  /** 获取API URL */
20
24
  getApiUrl(func) {