|
@@ -188,7 +188,8 @@ const preCheck = async () => {
|
|
|
// });
|
|
|
// };
|
|
|
const appId = ref(sessionStorage.getItem("appId"));
|
|
|
-const openId = ref("KfZnJNKFaFXWWCagSlX0dT4tNkwsLEwQVlrzpHvo");
|
|
|
+// const openId = ref("KfZnJNKFaFXWWCagSlX0dT4tNkwsLEwQVlrzpHvo");
|
|
|
+const openId = ref("");
|
|
|
const getWeChatAuth = async () => {
|
|
|
const { appId, errMsg, paymentSettingId } = await preCheck();
|
|
|
if (errMsg) {
|
|
@@ -246,9 +247,9 @@ const init = async () => {
|
|
|
}
|
|
|
const paymentSettingId = sessionStorage.getItem("paymentSettingId");
|
|
|
if (!code || !paymentSettingId) {
|
|
|
- // return getWeChatAuth();
|
|
|
+ return getWeChatAuth();
|
|
|
}
|
|
|
- // getOpenId()
|
|
|
+ getOpenId()
|
|
|
// wxConfig();
|
|
|
};
|
|
|
onMounted(() => init());
|