@alipay/ams-checkout 0.0.1757298389-dev.20 → 0.0.1757298389-dev.21
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.
|
@@ -416,7 +416,7 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
416
416
|
return _context3.abrupt("return");
|
|
417
417
|
case 14:
|
|
418
418
|
if (!_this3.elementProcessors[ElementType.payment]) {
|
|
419
|
-
_context3.next =
|
|
419
|
+
_context3.next = 21;
|
|
420
420
|
break;
|
|
421
421
|
}
|
|
422
422
|
_context3.next = 17;
|
|
@@ -424,16 +424,15 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
424
424
|
case 17:
|
|
425
425
|
_yield$_this3$onValid2 = _context3.sent;
|
|
426
426
|
data = _yield$_this3$onValid2.data;
|
|
427
|
-
console.log('[test] data-----', data);
|
|
428
427
|
// TODO 先快速修复类型, 这里结构和标准返回不一致 @马杰
|
|
429
428
|
// TODO checkout 返回的错误未包含 status 和 message @马杰 @薛浩
|
|
430
429
|
recordResult = data;
|
|
431
430
|
recordResultCallback(recordResult);
|
|
432
|
-
case
|
|
433
|
-
_context3.next =
|
|
431
|
+
case 21:
|
|
432
|
+
_context3.next = 29;
|
|
434
433
|
break;
|
|
435
|
-
case
|
|
436
|
-
_context3.prev =
|
|
434
|
+
case 23:
|
|
435
|
+
_context3.prev = 23;
|
|
437
436
|
_context3.t0 = _context3["catch"](2);
|
|
438
437
|
errorResult = {
|
|
439
438
|
error: _objectSpread(_objectSpread({}, ERRORMESSAGE.ERR_DATA_STRUCT_UNRECOGNIZED), {}, {
|
|
@@ -448,11 +447,11 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
448
447
|
});
|
|
449
448
|
recordResult = errorResult;
|
|
450
449
|
recordResultCallback(errorResult);
|
|
451
|
-
case
|
|
450
|
+
case 29:
|
|
452
451
|
case "end":
|
|
453
452
|
return _context3.stop();
|
|
454
453
|
}
|
|
455
|
-
}, _callee3, null, [[2,
|
|
454
|
+
}, _callee3, null, [[2, 23]]);
|
|
456
455
|
}));
|
|
457
456
|
return function (_x) {
|
|
458
457
|
return _ref3.apply(this, arguments);
|
|
@@ -625,7 +624,10 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
625
624
|
traceId = _response$originActio.traceId,
|
|
626
625
|
errorCode = _response$originActio.errorCode,
|
|
627
626
|
errorMessage = _response$originActio.errorMessage;
|
|
628
|
-
var error =
|
|
627
|
+
var error = {
|
|
628
|
+
code: errorCode,
|
|
629
|
+
message: errorMessage
|
|
630
|
+
};
|
|
629
631
|
if (PROMISE_CALLBACK_CODE[errorCode]) {
|
|
630
632
|
var _PROMISE_CALLBACK_COD;
|
|
631
633
|
error = {
|