提交 2efea777 authored 作者: matian's avatar matian

修改获取已购买课程接口

上级 1e43991d
...@@ -30,7 +30,7 @@ export function uploadFile(data: object) { ...@@ -30,7 +30,7 @@ export function uploadFile(data: object) {
// 获取已经购买的课程 // 获取已经购买的课程
export function getBuyShop() { export function getBuyShop() {
return httpRequest.get('https://learn-api.ezijing.com/api/lms-ep/v2/education/courses/my', { return httpRequest.get('https://learn-api.ezijing.com/api/lms-ep/v2/education/my-course-basic-info', {
headers: { tenant: 'prp' } headers: { tenant: 'prp' }
}) })
} }
...@@ -53,7 +53,7 @@ export function checkCode(params: any) { ...@@ -53,7 +53,7 @@ export function checkCode(params: any) {
/** /**
* 提交留咨信息 * 提交留咨信息
*/ */
export function postNes(data: any) { export function postNes(data: any) {
return httpRequest.post('https://project-api.ezijing.com/api/enrollment/v1.0/applications', data, { return httpRequest.post('https://project-api.ezijing.com/api/enrollment/v1.0/applications', data, {
headers: { 'Content-Type': 'multipart/form-data' } headers: { 'Content-Type': 'multipart/form-data' }
}) })
...@@ -61,8 +61,8 @@ export function checkCode(params: any) { ...@@ -61,8 +61,8 @@ export function checkCode(params: any) {
/** /**
* 获取用户OpenId * 获取用户OpenId
* */ * */
export function getOpenId(data?: any) { export function getOpenId(data?: any) {
return httpRequest.post('https://shop-show-pc.ezijing.com/api/usercenter/v1/wechat/get-openid', data, { return httpRequest.post('https://shop-show-pc.ezijing.com/api/usercenter/v1/wechat/get-openid', data, {
headers: { 'Content-Type': 'application/x-www-form-urlencoded' } headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
}) })
} }
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论