提交 645d1dc5 authored 作者: lihuihui's avatar lihuihui

updata

上级 1b9ab85c
......@@ -5,24 +5,24 @@ export default class LoginAPI extends BaseAPI {
* 获取验证码
* @param {[string]} id resource_id
*/
getSendCode = (obj) => this.post('/share/v1/live-activity/send-sms-code', obj, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
getSendCode = (obj) => this.post('/passport/v1/live-activity/send-sms-code', obj, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/**
* 注册
* @param {[string]} id resource_id
*/
register = (obj) => this.post('/share/v1/live-activity/register', obj, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
register = (obj) => this.post('/passport/v1/live-activity/register', obj, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/**
* 登录
* @param {[string]} id resource_id
*/
login = (obj, param) => this.post(`/share/v1/live-activity/login?${param}`, obj, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
login = (obj, param) => this.post(`/passport/v1/live-activity/login?${param}`, obj, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/**
* 获取用户信息
* @param {[object]} obj
*/
getUserInfo = () => this.get('/share/v1/live-activity/user', { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
getUserInfo = () => this.get('/passport/v1/live-activity/user', { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/**
* 退出登录
*/
loginOut = () => this.get('/share/v1/live-activity/logout', {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
loginOut = () => this.get('/passport/v1/live-activity/logout', {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论