提交 7393339a 编写于 作者: guofeng.chen's avatar guofeng.chen

获取用户信息

上级 a1e2906e
...@@ -83,12 +83,8 @@ const user = { ...@@ -83,12 +83,8 @@ const user = {
getWxUserInfo({ state, commit }, code) { getWxUserInfo({ state, commit }, code) {
commit('SET_WX_CODE', code); commit('SET_WX_CODE', code);
const type = getWxType(); const type = getWxType();
let url = ''; // let url = getBaseUrl(`wechats/users/info/${type}/${code}`);
if (type == 30) { let url = `https://sc.yunqueyi.com/wechats/users/info/${type}/${code}`; // 测试支付,暂时使用线上
url = getBaseUrl(`wechats/users/info/${type}/${code}`);
} else {
url = `https://sc.yunqueyi.com/wechats/users/info/${type}/${code}`; // 测试支付,暂时使用线上
}
fetch({ fetch({
url, url,
method: 'get', method: 'get',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册