mirror of
https://gitee.com/bootx/dax-pay-h5
synced 2026-08-13 07:45:42 +08:00
fix 使用公共通道认证报错问题
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { getWebsite } from '@/api/System.api'
|
||||
import {useRoute} from "vue-router";
|
||||
|
||||
export const WEBSITE_CONFIG = ref<WebsiteConfig>({})
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ async function init() {
|
||||
if (orderAndConfig.value?.aggregateConfig?.needOpenId) {
|
||||
// 不等于9说明是微信重定向过来的
|
||||
if (isChannel !== '9') {
|
||||
if (isChannel) {
|
||||
if (isChannel === '1') {
|
||||
// 通道认证
|
||||
await channelAuth()
|
||||
return
|
||||
|
||||
@@ -33,7 +33,7 @@ onMounted(() => {
|
||||
* 页面初始化
|
||||
*/
|
||||
async function init() {
|
||||
if (isChannel) {
|
||||
if (isChannel === '1') {
|
||||
// 通道封装认证方式
|
||||
channelAuth()
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ async function init() {
|
||||
if (data.needOpenId) {
|
||||
// 不等于9说明是微信重定向过来的
|
||||
if (isChannel !== '9') {
|
||||
if (isChannel) {
|
||||
if (isChannel === '1') {
|
||||
// 通道认证
|
||||
await channelAuth()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user