فهرست منبع

Update state.ts

lex-xin 4 ماه پیش
والد
کامیت
9101230d75
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      src/state.ts

+ 5 - 5
src/state.ts

@@ -110,15 +110,15 @@ export const goAliAuth = (alipayAppId: string, urlString?: string) => {
   const urlNow = encodeURIComponent(urlString || window.location.href);
   const appid = alipayAppId || '2021004100630808';
   // 开发环境
-  if (import.meta.env.DEV) {
+  // if (import.meta.env.DEV) {
     let url = `https://kt.colexiu.com/getAliCode?app_id=${appid}&state=STATE&redirect_uri=${urlNow}`;
     window.location.replace(url);
-  }
+  // }
 
   // 生产环境
-  if (import.meta.env.PROD) {
-    alipayAuth(alipayAppId, urlString);
-  }
+  // if (import.meta.env.PROD) {
+  //   alipayAuth(alipayAppId, urlString);
+  // }
 };
 
 const alipayAuth = (alipayAppId: string, urlString?: string) => {