@conecli/cone-render 0.10.1-shop-beta.37 → 0.10.1-shop-beta.40

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.
Files changed (34) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/accessibility.h5.ts +1 -1
  3. package/dist/common/accessibility.ts +1 -0
  4. package/dist/common/const.ts +1 -1
  5. package/dist/common/index.h5.ts +1 -1
  6. package/dist/common/index.jd.ts +1 -1
  7. package/dist/common/index.ts +1 -1
  8. package/dist/common/index.weapp.ts +1 -1
  9. package/dist/components/base/CountDown/index.tsx +1 -1
  10. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  11. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  12. package/dist/interface/common.ts +1 -1
  13. package/dist/interface/jumpEventReport.ts +1 -1
  14. package/dist/interface/service.ts +1 -1
  15. package/dist/jumpEventReport/base.ts +1 -1
  16. package/dist/jumpEventReport/index.weapp.ts +1 -1
  17. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  18. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  19. package/dist/jumpEventReport/logEventConfig.h5.ts +1 -1
  20. package/dist/jumpEventReport/web.jd.ts +1 -1
  21. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  22. package/dist/language/en_US.json +210 -149
  23. package/dist/language/zh_CN.json +210 -149
  24. package/dist/language/zh_HK.json +210 -149
  25. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  26. package/dist/open/api/shopMember.ts +1 -1
  27. package/dist/service/fetchGateway.ts +1 -1
  28. package/dist/service/requestServer.weapp.ts +1 -1
  29. package/dist/utils/connectNativeJsBridge.ts +1 -1
  30. package/dist/utils/index.h5.ts +1 -1
  31. package/dist/utils/index.ts +1 -1
  32. package/dist/utils/jumpExtMapUtil.weapp.ts +1 -0
  33. package/dist/utils/utils.ts +1 -1
  34. package/package.json +1 -1
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro';
2
1
  TaroEventType,
3
2
  JUMP_MEMBER_CHANNEL,
4
3
  CENTERDISPATCH_JUMPPAGE_VALUE,
5
4
 
6
5
  CARD_BANNER = 'shopMemberCardVenderCardBanner',
7
6
 
8
7
  CARD_NAME = 'shopMemberCardVenderCardName',
9
8
 
10
9
  MEMBERSHIP_LEVEL = 'shopMemberCardMembershipLevel',
11
10
 
12
11
  MEMBERSHIP_RULE_ENTRANCE = 'shopMemberCardMembershipRuleEntrance',
13
12
 
14
13
  MEMBERSHIP_POINT = 'shopMemberCardMembershipPoint',
15
14
  return new Promise((resolve) => {
16
15
  requestServer
17
16
  .getCustomerCenterDispatch(params)
18
17
  .then((response) => {
19
18
  if (response.result && response.code === '0') {
20
19
  resolve(response.result);
21
20
  } else {
22
21
  resolve({
23
22
  jumpPage:
24
23
  response.code === '1'
25
24
  ? CENTERDISPATCH_JUMPPAGE_VALUE.NOT_LOGGED_IN
26
25
  : CENTERDISPATCH_JUMPPAGE_VALUE.SYSTEM_ERROR,
27
26
  });
28
27
  }
29
28
  })
30
29
  .catch((err) => {
31
30
  resolve({ jumpPage: CENTERDISPATCH_JUMPPAGE_VALUE.NETWORK_ERROR });
32
31
  console.log('oneKeyJoinMember getcustomerCenterDispatch err', err);
33
32
  });
34
33
  });
35
34
  const currentVenderId = global.info.queryInfo.venderId;
36
35
  const currentShopId = global.info.queryInfo.shopId;
37
36
  const channel = JUMP_MEMBER_CHANNEL.POP_WEBVIEW;
38
37
  const forceMemberCardPopup = options?.forceMemberCardPopup;
39
38
  const toastOpt = {
40
39
  duration: 3000,
41
40
  image:
42
41
  'https://img13.360buyimg.com/img/jfs/t1/196933/39/19850/1479/61b059aaEe969b8db/acb37a47b9034333.png',
43
42
  };
44
43
  if (isAppHomeForMarketPage) {
45
44
  JumpEventReport.jdJumpToBottomTabBrandMember({
46
45
  shopId: currentShopId,
47
46
  venderId: currentVenderId,
48
47
  });
49
48
  return;
50
49
  }
51
50
  const params = {
52
51
  venderId: currentVenderId,
53
52
  channel,
54
53
  queryVersion: isH5AndJdShopView && jdAppVersionStr !== '' ? jdAppVersionStr : '9.2.0',
55
54
  };
56
55
  const centerDispatchResult = await getCenterDispatchResult(params);
57
56
  console.log('oneKeyJoinMember getcustomerCenterDispatch 接口返回值', centerDispatchResult);
58
57
  const { jumpPage } = centerDispatchResult;
59
58
  if (typeof jumpPage !== 'number') {
60
59
  console.log('oneKeyJoinMember getcustomerCenterDispatch 接口返回 jumpPage 值类型异常,非数字');
61
60
  showFailToast({
62
61
  title: '网络繁忙,稍后再试吧~',
63
62
  ...toastOpt,
64
63
  });
65
64
  return;
66
65
  }
67
66
  const centerDispatchJumpPageValue = Number(jumpPage);
68
67
  if (
69
68
  centerDispatchJumpPageValue === CENTERDISPATCH_JUMPPAGE_VALUE.NETWORK_ERROR ||
70
69
  centerDispatchJumpPageValue === CENTERDISPATCH_JUMPPAGE_VALUE.SYSTEM_ERROR
71
70
  ) {
72
71
  console.log('oneKeyJoinMember getcustomerCenterDispatch 接口网络异常或接口异常', jumpPage);
73
72
  showFailToast({
74
73
  title: '网络繁忙,稍后再试吧~',
75
74
  ...toastOpt,
76
75
  });
77
76
  return;
78
77
  }
79
78
  if (centerDispatchJumpPageValue === CENTERDISPATCH_JUMPPAGE_VALUE.NOT_LOGGED_IN) {
80
79
  console.log('oneKeyJoinMember getcustomerCenterDispatch 接口返回未登录,跳登录页');
81
80
  global
82
81
  .doLogin()
83
82
  .then((res) => {
84
83
  console.log('登录成功', res);
85
84
  })
86
85
  .catch((err) => {
87
86
  console.log('登录失败', err);
88
87
  });
89
88
  return;
90
89
  }
91
90
  const memberRoleJumpPageValueArr = [
92
91
  CENTERDISPATCH_JUMPPAGE_VALUE.MEMBER_CENTER,
93
92
  CENTERDISPATCH_JUMPPAGE_VALUE.ISV_MEMBER,
94
93
  CENTERDISPATCH_JUMPPAGE_VALUE.JSHOP_ISV_PAGE,
95
94
  ];
96
95
  const isMemberRole = memberRoleJumpPageValueArr.includes(centerDispatchJumpPageValue);
97
96
  if (isMemberRole) {
98
97
  showFailToast({
99
98
  title: '您已是本店会员,无需再次入会',
100
99
  ...toastOpt,
101
100
  });
102
101
  return;
103
102
  }
104
103
  if (!isH5AndJdShopView && !forceMemberCardPopup) {
105
104
  JumpEventReport.jdJumpToNewH5MemberCard();
106
105
  return;
107
106
  }
108
107
  const { isDegrade = true, isLowVersion = true } = centerDispatchResult;
109
108
  console.log('一键入会,是否已降级', isDegrade);
110
109
  console.log('一键入会,是否低版本', isLowVersion);
111
110
  if (isDegrade) {
112
111
  console.log('一键入会,已降级');
113
112
  showFailToast({
114
113
  title: '网络繁忙,稍后再试吧~',
115
114
  ...toastOpt,
116
115
  });
117
116
  return;
118
117
  }
119
118
  if (isLowVersion && !forceMemberCardPopup) {
120
119
  console.log('一键入会,低版本');
121
120
  JumpEventReport.jdJumpToMemberTab();
122
121
  return;
123
122
  }
124
123
  return new Promise((resolve) => {
125
124
  const getOpenCardUrlParams = {
126
125
  venderId: currentVenderId,
127
126
  shopId: currentShopId,
128
127
  channel: JUMP_MEMBER_CHANNEL.POP_WEBVIEW,
129
128
  device: global.info.sysInfo?.isJdTabletDevice ? 'tablet' : 'all',
130
129
  memberSceneType: 'view',
131
130
  ...options,
132
131
  };
133
132
  const memberCardurl =
134
133
  window?.shopGlobalSwitch?.openNewMemberEntry === 'true'
135
134
  ? `${JumpWebUrl.memberCard}?${objectToUrlEncode(getOpenCardUrlParams)}`
136
135
  : `${JumpWebUrl.shopH5MemberCardAPP}?${objectToUrlEncode(getOpenCardUrlParams)}`;
137
136
  const sourceUrl = encodeURIComponent(window.location.href || '');
138
137
  let url =
139
138
  sourceUrl && sourceUrl !== '' ? `${memberCardurl}&sourceUrl=${sourceUrl}` : memberCardurl;
140
139
  if (!url.includes('http')) {
141
140
  url = 'https:' + url;
142
141
  }
143
142
  console.log('openPopWebview url', url);
144
143
  nativeOpenPopWebView({
145
144
  url,
146
145
  });
147
146
  Taro.eventCenter.off(TaroEventType.JOIN_MEMBER_SUCCESS);
148
147
  Taro.eventCenter.on(TaroEventType.JOIN_MEMBER_SUCCESS, (res) => {
149
148
  console.log('TaroEventType.JOIN_MEMBER_SUCCESS res', res);
150
149
  const { shopId, venderId } = res;
151
150
  if (shopId === currentShopId && venderId === currentVenderId) {
152
151
  resolve(true);
153
152
  } else {
154
153
  console.log(
155
154
  'TaroEventType.JOIN_MEMBER_SUCCESS shopId venderId 不匹配,currentShopId, currentVenderId',
156
155
  currentShopId,
157
156
  currentVenderId,
158
157
  );
159
158
  resolve(false);
160
159
  }
161
160
  });
162
161
  });
162
+ import Taro from '@tarojs/taro';
163
163
  TaroEventType,
164
164
  JUMP_MEMBER_CHANNEL,
165
165
  CENTERDISPATCH_JUMPPAGE_VALUE,
166
166
 
167
167
  CARD_BANNER = 'shopMemberCardVenderCardBanner',
168
168
 
169
169
  CARD_NAME = 'shopMemberCardVenderCardName',
170
170
 
171
171
  MEMBERSHIP_LEVEL = 'shopMemberCardMembershipLevel',
172
172
 
173
173
  MEMBERSHIP_RULE_ENTRANCE = 'shopMemberCardMembershipRuleEntrance',
174
174
 
175
175
  MEMBERSHIP_POINT = 'shopMemberCardMembershipPoint',
176
176
  return new Promise((resolve) => {
177
177
  requestServer
178
178
  .getCustomerCenterDispatch(params)
179
179
  .then((response) => {
180
180
  if (response.result && response.code === '0') {
181
181
  resolve(response.result);
182
182
  } else {
183
183
  resolve({
184
184
  jumpPage:
185
185
  response.code === '1'
186
186
  ? CENTERDISPATCH_JUMPPAGE_VALUE.NOT_LOGGED_IN
187
187
  : CENTERDISPATCH_JUMPPAGE_VALUE.SYSTEM_ERROR,
188
188
  });
189
189
  }
190
190
  })
191
191
  .catch((err) => {
192
192
  resolve({ jumpPage: CENTERDISPATCH_JUMPPAGE_VALUE.NETWORK_ERROR });
193
193
  console.log('oneKeyJoinMember getcustomerCenterDispatch err', err);
194
194
  });
195
195
  });
196
196
  const currentVenderId = global.info.queryInfo.venderId;
197
197
  const currentShopId = global.info.queryInfo.shopId;
198
198
  const channel = JUMP_MEMBER_CHANNEL.POP_WEBVIEW;
199
199
  const forceMemberCardPopup = options?.forceMemberCardPopup;
200
200
  const toastOpt = {
201
201
  duration: 3000,
202
202
  image:
203
203
  'https://img13.360buyimg.com/img/jfs/t1/196933/39/19850/1479/61b059aaEe969b8db/acb37a47b9034333.png',
204
204
  };
205
205
  if (forceMemberCardPopup) {
206
206
  showFailToast({
207
207
  title: '临时调试模拟入会成功',
208
208
  });
209
209
  return new Promise((resolve) => {
210
210
  resolve(true);
211
211
  });
212
212
  }
213
213
  if (isAppHomeForMarketPage) {
214
214
  JumpEventReport.jdJumpToBottomTabBrandMember({
215
215
  shopId: currentShopId,
216
216
  venderId: currentVenderId,
217
217
  });
218
218
  return;
219
219
  }
220
220
  const params = {
221
221
  venderId: currentVenderId,
222
222
  channel,
223
223
  queryVersion: isH5AndJdShopView && jdAppVersionStr !== '' ? jdAppVersionStr : '9.2.0',
224
224
  };
225
225
  const centerDispatchResult = await getCenterDispatchResult(params);
226
226
  console.log('oneKeyJoinMember getcustomerCenterDispatch 接口返回值', centerDispatchResult);
227
227
  const { jumpPage } = centerDispatchResult;
228
228
  if (typeof jumpPage !== 'number') {
229
229
  console.log('oneKeyJoinMember getcustomerCenterDispatch 接口返回 jumpPage 值类型异常,非数字');
230
230
  showFailToast({
231
231
  title: '网络繁忙,稍后再试吧~',
232
232
  ...toastOpt,
233
233
  });
234
234
  return;
235
235
  }
236
236
  const centerDispatchJumpPageValue = Number(jumpPage);
237
237
  if (
238
238
  centerDispatchJumpPageValue === CENTERDISPATCH_JUMPPAGE_VALUE.NETWORK_ERROR ||
239
239
  centerDispatchJumpPageValue === CENTERDISPATCH_JUMPPAGE_VALUE.SYSTEM_ERROR
240
240
  ) {
241
241
  console.log('oneKeyJoinMember getcustomerCenterDispatch 接口网络异常或接口异常', jumpPage);
242
242
  showFailToast({
243
243
  title: '网络繁忙,稍后再试吧~',
244
244
  ...toastOpt,
245
245
  });
246
246
  return;
247
247
  }
248
248
  if (centerDispatchJumpPageValue === CENTERDISPATCH_JUMPPAGE_VALUE.NOT_LOGGED_IN) {
249
249
  console.log('oneKeyJoinMember getcustomerCenterDispatch 接口返回未登录,跳登录页');
250
250
  global
251
251
  .doLogin()
252
252
  .then((res) => {
253
253
  console.log('登录成功', res);
254
254
  })
255
255
  .catch((err) => {
256
256
  console.log('登录失败', err);
257
257
  });
258
258
  return;
259
259
  }
260
260
  const memberRoleJumpPageValueArr = [
261
261
  CENTERDISPATCH_JUMPPAGE_VALUE.MEMBER_CENTER,
262
262
  CENTERDISPATCH_JUMPPAGE_VALUE.ISV_MEMBER,
263
263
  CENTERDISPATCH_JUMPPAGE_VALUE.JSHOP_ISV_PAGE,
264
264
  ];
265
265
  const isMemberRole = memberRoleJumpPageValueArr.includes(centerDispatchJumpPageValue);
266
266
  if (isMemberRole) {
267
267
  showFailToast({
268
268
  title: '您已是本店会员,无需再次入会',
269
269
  ...toastOpt,
270
270
  });
271
271
  return;
272
272
  }
273
273
  if (!isH5AndJdShopView && !forceMemberCardPopup) {
274
274
  JumpEventReport.jdJumpToNewH5MemberCard();
275
275
  return;
276
276
  }
277
277
  const { isDegrade = true, isLowVersion = true } = centerDispatchResult;
278
278
  console.log('一键入会,是否已降级', isDegrade);
279
279
  console.log('一键入会,是否低版本', isLowVersion);
280
280
  if (isDegrade) {
281
281
  console.log('一键入会,已降级');
282
282
  showFailToast({
283
283
  title: '网络繁忙,稍后再试吧~',
284
284
  ...toastOpt,
285
285
  });
286
286
  return;
287
287
  }
288
288
  if (isLowVersion && !forceMemberCardPopup) {
289
289
  console.log('一键入会,低版本');
290
290
  JumpEventReport.jdJumpToMemberTab();
291
291
  return;
292
292
  }
293
293
  return new Promise((resolve) => {
294
294
  const getOpenCardUrlParams = {
295
295
  venderId: currentVenderId,
296
296
  shopId: currentShopId,
297
297
  channel: JUMP_MEMBER_CHANNEL.POP_WEBVIEW,
298
298
  device: global.info.sysInfo?.isJdTabletDevice ? 'tablet' : 'all',
299
299
  memberSceneType: 'view',
300
300
  ...options,
301
301
  };
302
302
  const memberCardurl =
303
303
  window?.shopGlobalSwitch?.openNewMemberEntry === 'true'
304
304
  ? `${JumpWebUrl.memberCard}?${objectToUrlEncode(getOpenCardUrlParams)}`
305
305
  : `${JumpWebUrl.shopH5MemberCardAPP}?${objectToUrlEncode(getOpenCardUrlParams)}`;
306
306
  const sourceUrl = encodeURIComponent(window.location.href || '');
307
307
  let url =
308
308
  sourceUrl && sourceUrl !== '' ? `${memberCardurl}&sourceUrl=${sourceUrl}` : memberCardurl;
309
309
  if (!url.includes('http')) {
310
310
  url = 'https:' + url;
311
311
  }
312
312
  console.log('openPopWebview url', url);
313
313
  nativeOpenPopWebView({
314
314
  url,
315
315
  });
316
316
  Taro.eventCenter.off(TaroEventType.JOIN_MEMBER_SUCCESS);
317
317
  Taro.eventCenter.on(TaroEventType.JOIN_MEMBER_SUCCESS, (res) => {
318
318
  console.log('TaroEventType.JOIN_MEMBER_SUCCESS res', res);
319
319
  const { shopId, venderId } = res;
320
320
  if (shopId === currentShopId && venderId === currentVenderId) {
321
321
  resolve(true);
322
322
  } else {
323
323
  console.log(
324
324
  'TaroEventType.JOIN_MEMBER_SUCCESS shopId venderId 不匹配,currentShopId, currentVenderId',
325
325
  currentShopId,
326
326
  currentVenderId,
327
327
  );
328
328
  resolve(false);
329
329
  }
330
330
  });
331
331
  });
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro';
2
1
  UUID,
3
2
  isJdApp,
4
3
  jdAppVersionStr,
5
4
  isIosDevice,
6
5
  isPc,
7
6
  isJdAndIosDevice,
8
7
  isJdAndAndroidDevice,
9
8
  isJdAndHarmonyDevice,
10
9
  isNewHarmonyShop,
11
10
  passSmartCouponInfoFunctionIdList,
12
11
  needFixClientValueToHarmonyFunctionIdList,
13
12
  clientVersion: isJdApp && jdAppVersionStr !== '' ? jdAppVersionStr : '11.0.0',
14
13
  client: isJdApp ? (isIosDevice ? 'apple' : 'android') : isPc ? 'pc' : 'wh5',
15
14
  screen: `${Math.ceil(window.screen?.width * devicePixelRatio)}*${Math.ceil(
16
15
  window.screen?.height * devicePixelRatio,
17
16
  )}`,
18
17
  area: '1_72_2799_0',
19
18
  uuid: UUID,
20
19
  const { area, realTimeArea } = areaInfo || {};
21
20
  area && area !== '' && (clientParams.area = area);
22
21
  realTimeArea && realTimeArea !== '' && (clientParams['realTimeArea'] = realTimeArea);
23
22
  console.warn(
24
23
  'cone-render中对外暴露fetchGateway收到原生端获取传来的四级地址信息',
25
24
  areaInfo,
26
25
  '更新后的接口底层信息',
27
26
  clientParams,
28
27
  );
29
28
  if (isH5 && (isJdAndIosDevice || isJdAndAndroidDevice)) {
30
29
  const smartCouponInfo = await getSmartCouponInfo();
31
30
  if (smartCouponInfo) {
32
31
  requestParams.smartCouponInfo = smartCouponInfo;
33
32
  }
34
33
  } else {
35
34
  console.warn('🚗 ~~ handleSmartCouponInfo ~~ 不支持的环境!');
36
35
  }
37
36
  functionId: string,
38
37
  body = {},
39
38
  options = {},
40
39
  requestOptions = {},
41
40
  const useBodyParams = { ...body };
42
41
  if (passSmartCouponInfoFunctionIdList.includes(functionId)) {
43
42
  await handleSmartCouponInfo(useBodyParams);
44
43
  }
45
44
  const params = Object.assign(
46
45
  {},
47
46
  {
48
47
  t: Date.now(),
49
48
  functionId,
50
49
  appid: 'shop_m_jd_com',
51
50
  body: JSON.stringify(useBodyParams),
52
51
  },
53
52
  clientParams,
54
53
  options,
55
54
  {
56
55
  area: clientParams.area,
57
56
  client: !isJdApp && options?.client ? options?.client : clientParams.client,
58
57
  clientVersion:
59
58
  !isJdApp && options?.clientVersion ? options?.clientVersion : clientParams.clientVersion,
60
59
  },
61
60
  );
62
61
  if (
63
62
  isJdAndHarmonyDevice &&
64
63
  (needFixClientValueToHarmonyFunctionIdList.includes(functionId) || isNewHarmonyShop)
65
64
  ) {
66
65
  params.client = 'harmony';
67
66
  } else {
68
67
  }
69
68
  console.warn(
70
69
  'fetchGateway url:' + api.apiFunc + ',functionId:' + params.functionId,
71
70
  '底层默认的clientParams',
72
71
  clientParams,
73
72
  '下发的options',
74
73
  options,
75
74
  '最后params',
76
75
  params,
77
76
  );
78
77
  return http.post(api.apiFunc, params, requestOptions);
78
+ import Taro from '@tarojs/taro';
79
79
  UUID,
80
80
  isJdApp,
81
81
  jdAppVersionStr,
82
82
  isIosDevice,
83
83
  isPc,
84
84
  isJdAndIosDevice,
85
85
  isJdAndAndroidDevice,
86
86
  isJdAndHarmonyDevice,
87
87
  isNewHarmonyShop,
88
88
  passSmartCouponInfoFunctionIdList,
89
89
  needFixClientValueToHarmonyFunctionIdList,
90
90
  clientVersion: isJdApp && jdAppVersionStr !== '' ? jdAppVersionStr : '11.0.0',
91
91
  client: isJdApp ? (isIosDevice ? 'apple' : 'android') : isPc ? 'pc' : 'wh5',
92
92
  screen: `${Math.ceil(window.screen?.width * devicePixelRatio)}*${Math.ceil(
93
93
  window.screen?.height * devicePixelRatio,
94
94
  )}`,
95
95
  area: '1_72_2799_0',
96
96
  uuid: UUID,
97
97
  const { area, realTimeArea } = areaInfo || {};
98
98
  area && area !== '' && (clientParams.area = area);
99
99
  realTimeArea && realTimeArea !== '' && (clientParams['realTimeArea'] = realTimeArea);
100
100
  console.warn(
101
101
  'cone-render中对外暴露fetchGateway收到原生端获取传来的四级地址信息',
102
102
  areaInfo,
103
103
  '更新后的接口底层信息',
104
104
  clientParams,
105
105
  );
106
106
  const smartCouponInfo = await getSmartCouponInfo();
107
107
  if (smartCouponInfo) {
108
108
  requestParams.smartCouponInfo = smartCouponInfo;
109
109
  }
110
110
  functionId: string,
111
111
  body = {},
112
112
  options = {},
113
113
  requestOptions = {},
114
114
  const useBodyParams = { ...body };
115
115
  if (passSmartCouponInfoFunctionIdList.includes(functionId)) {
116
116
  await handleSmartCouponInfo(useBodyParams);
117
117
  }
118
118
  const params = Object.assign(
119
119
  {},
120
120
  {
121
121
  t: Date.now(),
122
122
  functionId,
123
123
  appid: 'shop_m_jd_com',
124
124
  body: JSON.stringify(useBodyParams),
125
125
  },
126
126
  clientParams,
127
127
  options,
128
128
  {
129
129
  area: clientParams.area,
130
130
  client: !isJdApp && options?.client ? options?.client : clientParams.client,
131
131
  clientVersion:
132
132
  !isJdApp && options?.clientVersion ? options?.clientVersion : clientParams.clientVersion,
133
133
  },
134
134
  );
135
135
  if (
136
136
  isJdAndHarmonyDevice &&
137
137
  (needFixClientValueToHarmonyFunctionIdList.includes(functionId) || isNewHarmonyShop)
138
138
  ) {
139
139
  params.client = 'harmony';
140
140
  } else {
141
141
  }
142
142
  console.warn(
143
143
  'fetchGateway url:' + api.apiFunc + ',functionId:' + params.functionId,
144
144
  '底层默认的clientParams',
145
145
  clientParams,
146
146
  '下发的options',
147
147
  options,
148
148
  '最后params',
149
149
  params,
150
150
  );
151
151
  return http.post(api.apiFunc, params, requestOptions);