|
@@ -2,27 +2,27 @@ import Request from '../common/request.js';
|
|
let request = new Request().http
|
|
let request = new Request().http
|
|
|
|
|
|
export function loginByMp(data) {
|
|
export function loginByMp(data) {
|
|
- return request('/app/wx/courseLogin2',data,'POST','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/wx/courseLogin2',data,'POST','application/json;charset=UTF-8');
|
|
}
|
|
}
|
|
|
|
|
|
// 获取真实链接
|
|
// 获取真实链接
|
|
export function getRealLink(data) {
|
|
export function getRealLink(data) {
|
|
- return request('/app/course/getRealLink', data, 'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/course/getRealLink', data, 'GET','');
|
|
}
|
|
}
|
|
|
|
|
|
// h5课程简介
|
|
// h5课程简介
|
|
export function getH5CourseByVideoId(data) {
|
|
export function getH5CourseByVideoId(data) {
|
|
- return request('/app/course/getH5CourseByVideoId', data, 'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/course/getH5CourseByVideoId', data, 'GET','');
|
|
}
|
|
}
|
|
|
|
|
|
// h5课程详情加问答
|
|
// h5课程详情加问答
|
|
export function getH5CourseVideoDetails(data) {
|
|
export function getH5CourseVideoDetails(data) {
|
|
- return request('/app/course/getH5CourseVideoDetails', data, 'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/course/getH5CourseVideoDetails', data, 'GET','');
|
|
}
|
|
}
|
|
|
|
|
|
// 答题发红包
|
|
// 答题发红包
|
|
export function courseAnswer(data) {
|
|
export function courseAnswer(data) {
|
|
- return request('/app/course/courseAnswer', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/course/courseAnswer', data, 'POST', 'application/json;charset=UTF-8');
|
|
}
|
|
}
|
|
|
|
|
|
// // 记录看课时间(旧)
|
|
// // 记录看课时间(旧)
|
|
@@ -32,36 +32,36 @@ export function courseAnswer(data) {
|
|
|
|
|
|
// 记录看课时间(新)
|
|
// 记录看课时间(新)
|
|
export function getFinishCourseVideo(data) {
|
|
export function getFinishCourseVideo(data) {
|
|
- return request('/app/course/updateWatchDuration', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/course/updateWatchDuration', data, 'POST', 'application/json;charset=UTF-8');
|
|
}
|
|
}
|
|
|
|
|
|
// 关注客服
|
|
// 关注客服
|
|
export function getIsAddKf(data) {
|
|
export function getIsAddKf(data) {
|
|
- return request('/app/course/isAddKf', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/course/isAddKf', data, 'POST', 'application/json;charset=UTF-8');
|
|
}
|
|
}
|
|
|
|
|
|
// 流量(缓冲百分比)
|
|
// 流量(缓冲百分比)
|
|
export function getInternetTraffic(data) {
|
|
export function getInternetTraffic(data) {
|
|
- return request('/app/course/getInternetTraffic', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/course/getInternetTraffic', data, 'POST', 'application/json;charset=UTF-8');
|
|
}
|
|
}
|
|
|
|
|
|
// 每十分钟获得积分
|
|
// 每十分钟获得积分
|
|
export function getIntegralByH5Video(data) {
|
|
export function getIntegralByH5Video(data) {
|
|
- return request('/app/course/getIntegralByH5Video', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/course/getIntegralByH5Video', data, 'POST', 'application/json;charset=UTF-8');
|
|
}
|
|
}
|
|
|
|
|
|
// 发送奖励
|
|
// 发送奖励
|
|
export function sendReward(data) {
|
|
export function sendReward(data) {
|
|
- return request('/app/course/sendReward', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/course/sendReward', data, 'POST', 'application/json;charset=UTF-8');
|
|
}
|
|
}
|
|
|
|
|
|
// 播放错误上报
|
|
// 播放错误上报
|
|
export function getErrMsg(data) {
|
|
export function getErrMsg(data) {
|
|
- return request('/app/course/getErrMsg', data, 'POST', 'application/x-www-form-urlencoded','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/course/getErrMsg', data, 'POST', 'application/x-www-form-urlencoded');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取getWxConfig
|
|
// 获取getWxConfig
|
|
export function getWxConfig(data) {
|
|
export function getWxConfig(data) {
|
|
- return request('/app/wx/mp/getWxConfig', data, 'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
|
|
|
+ return request('/app/wx/mp/getWxConfig', data, 'GET','');
|
|
}
|
|
}
|