hookehuyr

fix 授权input_openid临时测试

...@@ -16,8 +16,6 @@ axios.interceptors.request.use( ...@@ -16,8 +16,6 @@ axios.interceptors.request.use(
16 // 绑定默认请求头 16 // 绑定默认请求头
17 config.params = _.merge(config.params, { 17 config.params = _.merge(config.params, {
18 f: 'voice', 18 f: 'voice',
19 - // TEMP:临时使用测试 OPENID, 正式版需要删除
20 - input_openid: 'api-test-openid'
21 }) 19 })
22 return config; 20 return config;
23 }, 21 },
......
...@@ -11,7 +11,9 @@ const $route = useRoute(); ...@@ -11,7 +11,9 @@ const $route = useRoute();
11 onMounted(() => { 11 onMounted(() => {
12 // php需要先跳转链接获取openid 12 // php需要先跳转链接获取openid
13 let url = encodeURIComponent(location.origin + location.pathname + $route.query.href); // 未授权的地址 13 let url = encodeURIComponent(location.origin + location.pathname + $route.query.href); // 未授权的地址
14 - location.href = `/srv/?f=voice&a=openid_${$route.query.userType}&res=${url}` 14 + // TEMP:临时使用测试 OPENID, 正式版需要删除
15 + let text = 'api-test-openid'
16 + location.href = `/srv/?f=voice&a=openid_${$route.query.userType}&res=${url}&input_openid=${text}`
15 }) 17 })
16 </script> 18 </script>
17 19
......