|
@@ -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) => {
|