吉媒互动平台前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
391 B

import request from '@/utils/request'
// api地址
const api = {
oauthUrl: 'wxofficial/oauthUrl',
oauthUserInfo: 'wxofficial/oauthUserInfo'
}
// 获取授权登录地址
export const oauthUrl = callbackUrl => {
return request.get(api.oauthUrl, { callbackUrl })
}
// 获取微信用户信息
export const oauthUserInfo = code => {
return request.get(api.oauthUserInfo, { code })
}