@alipay/ams-checkout 0.0.1703483942-dev.1 → 0.0.1703483942-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.
@@ -375,11 +375,14 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
375
375
|
return _this5.getDeviceIdAndLog();
|
376
376
|
case 8:
|
377
377
|
envInfo.deviceId = _context2.sent;
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
378
|
+
envInfo.extendInfo = {
|
379
|
+
WAP_SUB_TYPE: 'WECHAT_MINI_PROGRAM'
|
380
|
+
};
|
381
|
+
// if (window.navigator.userAgent.indexOf('miniProgram') > -1) {
|
382
|
+
// envInfo.extendInfo = {
|
383
|
+
// WAP_SUB_TYPE: 'WECHAT_MINI_PROGRAM',
|
384
|
+
// };
|
385
|
+
// }
|
383
386
|
case 10:
|
384
387
|
if (!(componentSignEnum.EASY_PAY_WALLET === _this5._componentSign)) {
|
385
388
|
_context2.next = 18;
|
@@ -1072,7 +1075,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1072
1075
|
window.open(_data.normalUrl);
|
1073
1076
|
return;
|
1074
1077
|
}
|
1075
|
-
if (_data.target === targetEnum.REPLACE) {
|
1078
|
+
if (_data.target === targetEnum.REPLACE && !(_data !== null && _data !== void 0 && _data.applinkUrl) && !(_data !== null && _data !== void 0 && _data.schemeUrl)) {
|
1076
1079
|
if (!_data.normalUrl) return failCallback(RedirectType.NormalUrl, '');
|
1077
1080
|
successCallback(RedirectType.NormalUrl, _data.normalUrl);
|
1078
1081
|
window.location.replace(_data.normalUrl);
|