|
@@ -32,6 +32,7 @@ export function courseAnswer(data) {
|
|
|
|
|
|
// 记录看课时间(新)
|
|
|
export function getFinishCourseVideo(data) {
|
|
|
+ if(!data||JSON.stringify(data)=='{}') return
|
|
|
return request('/app/course/updateWatchDuration', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
|
|
@@ -42,11 +43,13 @@ export function getIsAddKf(data) {
|
|
|
|
|
|
// 流量(缓冲百分比)
|
|
|
export function internetTraffic(data) {
|
|
|
+ if(!data||JSON.stringify(data)=='{}') return
|
|
|
return request('/app/course/getInternetTraffic', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
|
|
|
// 每十分钟获得积分
|
|
|
export function getIntegralByH5Video(data) {
|
|
|
+ if(!data||JSON.stringify(data)=='{}') return
|
|
|
return request('/app/course/getIntegralByH5Video', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
|