@alipay/ams-checkout 0.0.1720509876-dev.1 → 0.0.1720509876-dev.2
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.
@@ -84,7 +84,7 @@ var ApplePayComponent = /*#__PURE__*/function () {
|
|
84
84
|
}, {
|
85
85
|
biz: 'sdk',
|
86
86
|
type: 'funnel',
|
87
|
-
success: eventCodeEnum.
|
87
|
+
success: eventCodeEnum.SDK_PAYMENT_SUCCESSFUL === (state === null || state === void 0 ? void 0 : state.code),
|
88
88
|
code: state === null || state === void 0 ? void 0 : state.code,
|
89
89
|
errorCode: state === null || state === void 0 || (_state$result = state.result) === null || _state$result === void 0 ? void 0 : _state$result.errorCode,
|
90
90
|
errorMessage: state === null || state === void 0 || (_state$result2 = state.result) === null || _state$result2 === void 0 ? void 0 : _state$result2.errorMessage,
|
@@ -98,7 +98,19 @@ export var getAppPath = function getAppPath() {
|
|
98
98
|
}
|
99
99
|
// element应用特殊处理
|
100
100
|
if (_toConsumableArray(Object.values(ComponentSignEnumV2)).includes(componentSign)) {
|
101
|
-
|
101
|
+
// element又分为express_checkout模式和普通模式, express_checkout 模式在扩展参数是返回expressCheckout=true
|
102
|
+
var isExpressCheckout = false;
|
103
|
+
try {
|
104
|
+
isExpressCheckout = JSON.parse(extendInfo).expressCheckout;
|
105
|
+
} catch (error) {
|
106
|
+
// 遇到JSON解析错误,默认false
|
107
|
+
}
|
108
|
+
if (isExpressCheckout) {
|
109
|
+
// express_checkout模式走单独映射
|
110
|
+
return "".concat(elementAppMarmotMap[environment], "/elements/").concat(finalAppVersion, "/pages/express_checkout/index.html");
|
111
|
+
} else {
|
112
|
+
return "".concat(elementAppMarmotMap[environment], "/elements/").concat(finalAppVersion, "/pages/").concat(productScene.toLowerCase(), "/index.html");
|
113
|
+
}
|
102
114
|
}
|
103
115
|
return "".concat(marmotMap[environment], "/").concat(componentSign, "/").concat(finalProductSceneVersion, "/index.").concat(finalAppVersion, ".html");
|
104
116
|
};
|