course.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. "use strict";
  2. var common_request = require("../common/request.js");
  3. let request = new common_request.Request().http;
  4. function loginByMp(data) {
  5. return request("/app/wx/courseLogin", data, "POST", "application/json;charset=UTF-8", "https://h5api.his.cdwjyyh.com");
  6. }
  7. function getRealLink(data) {
  8. return request("/app/course/getRealLink", data, "GET", "", "https://h5api.his.cdwjyyh.com");
  9. }
  10. function getH5CourseByVideoId(data) {
  11. return request("/app/course/getH5CourseByVideoId", data, "GET", "", "https://h5api.his.cdwjyyh.com");
  12. }
  13. function getH5CourseVideoDetails(data) {
  14. return request("/app/course/getH5CourseVideoDetails", data, "GET", "", "https://h5api.his.cdwjyyh.com");
  15. }
  16. function courseAnswer(data) {
  17. return request("/app/course/courseAnswer", data, "POST", "application/json;charset=UTF-8", "https://h5api.his.cdwjyyh.com");
  18. }
  19. function getFinishCourseVideo(data) {
  20. return request("/app/course/updateWatchDuration", data, "POST", "application/json;charset=UTF-8", "https://h5api.his.cdwjyyh.com");
  21. }
  22. function getIsAddKf(data) {
  23. return request("/app/course/isAddKf", data, "POST", "application/json;charset=UTF-8", "https://h5api.his.cdwjyyh.com");
  24. }
  25. function getInternetTraffic(data) {
  26. return request("/app/course/getInternetTraffic", data, "POST", "application/json;charset=UTF-8", "https://h5api.his.cdwjyyh.com");
  27. }
  28. function getIntegralByH5Video(data) {
  29. return request("/app/course/getIntegralByH5Video", data, "POST", "application/json;charset=UTF-8", "https://h5api.his.cdwjyyh.com");
  30. }
  31. function sendReward(data) {
  32. return request("/app/course/sendReward", data, "POST", "application/json;charset=UTF-8", "https://h5api.his.cdwjyyh.com");
  33. }
  34. function getErrMsg(data) {
  35. return request("/app/course/getErrMsg", data, "POST", "application/x-www-form-urlencoded", "https://h5api.his.cdwjyyh.com");
  36. }
  37. exports.courseAnswer = courseAnswer;
  38. exports.getErrMsg = getErrMsg;
  39. exports.getFinishCourseVideo = getFinishCourseVideo;
  40. exports.getH5CourseByVideoId = getH5CourseByVideoId;
  41. exports.getH5CourseVideoDetails = getH5CourseVideoDetails;
  42. exports.getIntegralByH5Video = getIntegralByH5Video;
  43. exports.getInternetTraffic = getInternetTraffic;
  44. exports.getIsAddKf = getIsAddKf;
  45. exports.getRealLink = getRealLink;
  46. exports.loginByMp = loginByMp;
  47. exports.sendReward = sendReward;