@uxda/appkit 4.2.51 → 4.2.53
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.
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/shared/weixin/jssdk.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -100,12 +100,12 @@ var script$J = /* @__PURE__ */ defineComponent({
|
|
|
100
100
|
|
|
101
101
|
script$J.__file = "src/payment/components/AmountPicker.vue";
|
|
102
102
|
|
|
103
|
-
const getSdkConfig = (appCode) => {
|
|
103
|
+
const getSdkConfig = (appCode, url) => {
|
|
104
104
|
return new Promise((resolve, reject) => {
|
|
105
105
|
const $http = useHttp$2();
|
|
106
106
|
$http.get("/wecom/config/getConfig", {
|
|
107
107
|
appCode: appCode || "loankitMp",
|
|
108
|
-
callbackUrl: encodeURIComponent(location.href.split("#")[0])
|
|
108
|
+
callbackUrl: url || encodeURIComponent(location.href.split("#")[0])
|
|
109
109
|
}).then((response) => {
|
|
110
110
|
resolve(response);
|
|
111
111
|
});
|
package/package.json
CHANGED
|
@@ -22,14 +22,14 @@ interface PrePayOptions {
|
|
|
22
22
|
* jssdk 初始化配置
|
|
23
23
|
* @param appCode
|
|
24
24
|
*/
|
|
25
|
-
const getSdkConfig = (appCode?: string): Promise<JssdkConfig> => {
|
|
25
|
+
const getSdkConfig = (appCode?: string, url?: string): Promise<JssdkConfig> => {
|
|
26
26
|
return new Promise<JssdkConfig>((resolve, reject) => {
|
|
27
27
|
const $http = useHttp()
|
|
28
28
|
|
|
29
29
|
$http
|
|
30
30
|
.get('/wecom/config/getConfig', {
|
|
31
31
|
appCode: appCode || 'loankitMp',
|
|
32
|
-
callbackUrl: encodeURIComponent(location.href.split('#')[0]),
|
|
32
|
+
callbackUrl: url || encodeURIComponent(location.href.split('#')[0]),
|
|
33
33
|
})
|
|
34
34
|
.then((response: JssdkConfig) => {
|
|
35
35
|
resolve(response)
|