提交 b0f5c45e authored 作者: 王鹏飞's avatar 王鹏飞

生产环境微信登录回调地址修改

上级 d52ef961
VUE_APP_BASE_API=
VUE_APP_WECHAT_REDIRECT_URL=
\ No newline at end of file
NODE_ENV=production
VUE_APP_BASE_API=https://ehall2.ezijing.com
VUE_APP_WECHAT_REDIRECT_URL=https://passport2.ezijing.com/rest/wechat/oauth-callback
\ No newline at end of file
VUE_APP_BASE_API=https://ehall.ezijing.com
VUE_APP_WECHAT_REDIRECT_URL=https://passport.ezijing.com/rest/wechat/oauth-callback
\ No newline at end of file
......@@ -132,7 +132,7 @@ export default {
wechatLogin() {
const appId = 'wx451c01d40d090d7a'
// 回调地址
const redirectURI = `https://passport2.ezijing.com/rest/wechat/oauth-callback?needCheck=false&identity=friend&redirectUrl=${location.origin}`
const redirectURI = `${process.env.VUE_APP_WECHAT_REDIRECT_URL}?needCheck=false&identity=friend&redirectUrl=${location.origin}`
// 微信的地址
const wechatUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${encodeURIComponent(
redirectURI
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论