@alipay/ams-checkout 0.0.1719569471-dev.0 → 0.0.1719907614-dev.0
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.
@@ -39,12 +39,12 @@ var getAppVersion = function getAppVersion(_extendInfo, productScene, mid) {
|
|
39
39
|
|
40
40
|
// 没有匹配到版本,查询上次的加载版本
|
41
41
|
if (!appVersion) {
|
42
|
-
appVersion = getLastAppVersion(productScene);
|
42
|
+
appVersion = getLastAppVersion(sdkVersion + productScene);
|
43
43
|
return appVersion;
|
44
44
|
}
|
45
45
|
// 不为空时代表是有sessionData,因此要保存当前版本
|
46
46
|
if (_extendInfo) {
|
47
|
-
setLastAppVersion(productScene, appVersion);
|
47
|
+
setLastAppVersion(sdkVersion + productScene, appVersion);
|
48
48
|
}
|
49
49
|
return appVersion;
|
50
50
|
} catch (error) {
|
@@ -298,7 +298,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
298
298
|
}).send();
|
299
299
|
if (componentSignEnum.EASY_PAY_WALLET === this._componentSign) {
|
300
300
|
if (productScene === productSceneEnum.EASY_PAY && productSceneVersion === '1.0' && !autoDebitWithToken && requireFastSdk) {
|
301
|
-
// EASY_PAY 1.0首次支付,requireFastSdk为true,不需要接口请求
|
301
|
+
// EASY_PAY 1.0首次支付,requireFastSdk为true,不需要接口请求
|
302
302
|
this.handleAuthUrlInfo(authUrlInfo);
|
303
303
|
return;
|
304
304
|
}
|
package/esm/util/upgrade.d.ts
CHANGED
@@ -27,13 +27,13 @@ export declare function isGreyscaleMatch(item: UpgradeItem, randomGreyscale: num
|
|
27
27
|
export declare const getMatchAppVersion: (_extendInfo: string, sdkInfo: UpgradeSdkInfo) => string;
|
28
28
|
/**
|
29
29
|
* 获取保存的加载版本
|
30
|
-
* @param
|
30
|
+
* @param versionKey
|
31
31
|
* @returns
|
32
32
|
*/
|
33
|
-
export declare const getLastAppVersion: (
|
33
|
+
export declare const getLastAppVersion: (versionKey: string) => string;
|
34
34
|
/**
|
35
35
|
* 保存指定场景的加载版本供下次使用
|
36
|
-
* @param
|
36
|
+
* @param versionKey
|
37
37
|
* @returns
|
38
38
|
*/
|
39
|
-
export declare const setLastAppVersion: (
|
39
|
+
export declare const setLastAppVersion: (versionKey: string, appVersion: string) => boolean;
|
package/esm/util/upgrade.js
CHANGED
@@ -89,12 +89,12 @@ export var getMatchAppVersion = function getMatchAppVersion(_extendInfo, sdkInfo
|
|
89
89
|
|
90
90
|
/**
|
91
91
|
* 获取保存的加载版本
|
92
|
-
* @param
|
92
|
+
* @param versionKey
|
93
93
|
* @returns
|
94
94
|
*/
|
95
|
-
export var getLastAppVersion = function getLastAppVersion(
|
95
|
+
export var getLastAppVersion = function getLastAppVersion(versionKey) {
|
96
96
|
try {
|
97
|
-
var key = "Antom_".concat(
|
97
|
+
var key = "Antom_".concat(versionKey, "_LastAppVersion");
|
98
98
|
return getStorageString(key, '');
|
99
99
|
} catch (error) {
|
100
100
|
return '';
|
@@ -102,12 +102,12 @@ export var getLastAppVersion = function getLastAppVersion(productScene) {
|
|
102
102
|
};
|
103
103
|
/**
|
104
104
|
* 保存指定场景的加载版本供下次使用
|
105
|
-
* @param
|
105
|
+
* @param versionKey
|
106
106
|
* @returns
|
107
107
|
*/
|
108
|
-
export var setLastAppVersion = function setLastAppVersion(
|
108
|
+
export var setLastAppVersion = function setLastAppVersion(versionKey, appVersion) {
|
109
109
|
try {
|
110
|
-
var key = "Antom_".concat(
|
110
|
+
var key = "Antom_".concat(versionKey, "_LastAppVersion");
|
111
111
|
return setStorageString(key, appVersion);
|
112
112
|
} catch (error) {
|
113
113
|
return false;
|