From 84698cb09713715a0a09a57288735873083f49b7 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Fri, 7 Mar 2025 20:15:08 +0800 Subject: [PATCH] platform_key --- src/router/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 86c2488..875c259 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -100,6 +100,10 @@ router.beforeEach(async(to, from, next) => { } if(!token){ let unionid=''; + let platform_key='123456'; + if(import.meta.env.MODE==='production') { + platform_key='dk&*dj1P' + }; let userInfo=cookie.readCookie('wechat_user_info'); let videoToken=cookie.readCookie('video_token'); if(userInfo){ @@ -107,7 +111,7 @@ router.beforeEach(async(to, from, next) => { unionid=json.unionid; const {data,code}=await api.login({ source:2, - platform_key:123456, + platform_key:platform_key, unionid:unionid?unionid:'', user_iden:to.query.uuid?to.query.uuid:'', })