@alipay/ams-checkout 0.0.1757298389-dev.11 → 0.0.1757298389-dev.12

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.
@@ -561,25 +561,21 @@ var ElementController = /*#__PURE__*/function () {
561
561
  obtainDataResult = _yield$Promise$all2[1];
562
562
  containerService === null || containerService === void 0 || containerService.switchContainerStatus(IContainerStatus.READY);
563
563
  error = this.getErrorFromResponse(obtainDataResult);
564
- if (!error) {
565
- _context5.next = 19;
566
- break;
564
+ if (error) {
565
+ // 仅结束resove,传出回调码
566
+ readyCallback({
567
+ error: error
568
+ });
567
569
  }
568
- this.handleInitializationError();
569
- readyCallback({
570
- error: error
571
- });
572
- return _context5.abrupt("return");
573
- case 19:
574
570
  if (this.areAllContainersReady()) {
575
571
  this.elementContainerService.getContainerServices().forEach(function (_, key) {
576
572
  _this5.sendReady(key, options);
577
573
  });
578
574
  }
579
- _context5.next = 26;
575
+ _context5.next = 23;
580
576
  break;
581
- case 22:
582
- _context5.prev = 22;
577
+ case 19:
578
+ _context5.prev = 19;
583
579
  _context5.t0 = _context5["catch"](1);
584
580
  this.handleInitializationError();
585
581
  readyCallback({
@@ -587,11 +583,11 @@ var ElementController = /*#__PURE__*/function () {
587
583
  traceId: _context5.t0 === null || _context5.t0 === void 0 ? void 0 : _context5.t0.traceId
588
584
  })
589
585
  });
590
- case 26:
586
+ case 23:
591
587
  case "end":
592
588
  return _context5.stop();
593
589
  }
594
- }, _callee5, this, [[1, 22]]);
590
+ }, _callee5, this, [[1, 19]]);
595
591
  }));
596
592
  function sendRequestAndWaitWebLaunch(_x4, _x5) {
597
593
  return _sendRequestAndWaitWebLaunch.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1757298389-dev.11",
3
+ "version": "0.0.1757298389-dev.12",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",