xctc-utils 1.6.10 → 1.6.11

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.
@@ -338,11 +338,15 @@ function configReady(config) {
338
338
  var newKey = key.toLowerCase();
339
339
  data[newKey] = data[key];
340
340
  }
341
+ if (!(data === null || data === void 0 ? void 0 : data.appid)) {
342
+ console.error("后端响应的data数据中缺乏appid或者appId或者AppId字段!");
343
+ return;
344
+ }
341
345
  var obj = {
342
346
  jsApiList: jsApiListData,
343
347
  openTagList: openTagListData,
344
348
  debug: false,
345
- appId: data === null || data === void 0 ? void 0 : data.appId,
349
+ appId: data === null || data === void 0 ? void 0 : data.appid,
346
350
  timestamp: data === null || data === void 0 ? void 0 : data.timestamp,
347
351
  nonceStr: data === null || data === void 0 ? void 0 : data.noncestr,
348
352
  signature: data === null || data === void 0 ? void 0 : data.signature, //必填,生成的签名
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xctc-utils",
3
- "version": "1.6.10",
3
+ "version": "1.6.11",
4
4
  "description": "localStorage存储\r ```\r sessionStorage存储\r ```\r crypto-js加密、解密\r ```\r 微信授权登录、微信分享\r ```\r 设备环境获取\r ```\r 是否是微信浏览器\r ```\r 时间戳转时间,字符串转时间戳",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",