接口测试

This commit is contained in:
tcubic 2022-08-08 18:11:54 +08:00
parent 4bf9082409
commit f28efe8103

View File

@ -242,21 +242,10 @@ const wxAuthGetCode = () => {
var REDIRECT_URI = window.location.href; var url = window.location.href;
window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+ appId +'&redirect_uri='+ REDIRECT_URI +'&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect'; // window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+ appId +'&redirect_uri='+ REDIRECT_URI +'&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect';
window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx35766a64d73d08a9&redirect_uri={{url}}&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect`
// service
// .post(process.env.VUE_APP_API + "/cms-activity/cms88/zsApi/xfhdAuthorize", {
// redirect_uri: redirect_uri,
// })
// .then((res) => {
// let code = res.data.data;
// console.log("get code3", res);
// authCode.value = res.data.data;
// window.location.href = res.data.data;
// // location.href = res.data.data;
// // window.open(res.data.data)
// });
}; };
const getCode = () => { const getCode = () => {