dolphin-weex-bc 0.0.49 → 0.0.51

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": "dolphin-weex-bc",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -145,7 +145,7 @@ export default {
145
145
  },
146
146
  _avatarSrc() {
147
147
  if (this.avatarSrc) return this.avatarSrc
148
- return this.isDiablo ? 'https://dolphin-weex-dev.msmartlife.cn/img/avatar_diablo.png' : 'https://dolphin-weex-dev.msmartlife.cn/img/avatar.png'
148
+ return this.isDiablo ? 'https://www.smartmidea.net/projects/xiaomei-agent-assets/avatar/avatar_diablo.png' : 'https://www.smartmidea.net/projects/xiaomei-agent-assets/avatar/avatar.png'
149
149
  }
150
150
  },
151
151
  created() {
@@ -921,7 +921,22 @@ const MaterialEvent = {
921
921
  let allGoodInfo = []
922
922
  try {
923
923
  if(params.length > 0){
924
- allGoodInfo = await this.handleSkuDetailListInfo(params)
924
+ // allGoodInfo = await this.handleSkuDetailListInfo(params)
925
+ if (params && params.length > 40) {
926
+ let paramsNum = Math.ceil(params.length / 40)
927
+ for (let index = 0; index < paramsNum; index++) {
928
+ try {
929
+ const resAllGoodInfo = await this.handleSkuDetailListInfo(params.slice(index * 40, (index + 1) * 40))
930
+ allGoodInfo.push(...resAllGoodInfo)
931
+ } catch (error) {
932
+ continue
933
+ }
934
+ }
935
+ } else {
936
+ try {
937
+ allGoodInfo = await this.handleSkuDetailListInfo(params)
938
+ } catch (error) {}
939
+ }
925
940
  console.log('获取到的全部商品信息1:'+ JSON.stringify(allGoodInfo))
926
941
  }
927
942
  } catch (error) {
@@ -1045,6 +1060,7 @@ const MaterialEvent = {
1045
1060
  console.log('获取ucAccessToken:'+ ucAccessToken);
1046
1061
  const res = await this.sendMideaCloundSaleRequest(serviceList.queryBySkuIdList, {
1047
1062
  headParams:{
1063
+ originSystem: "WXApp-meiju",
1048
1064
  userKey: ucAccessToken,
1049
1065
  },
1050
1066
  restParams: {