LjApiHelper.js 572 B

1234567891011121314151617181920212223242526
  1. var request = require('request');
  2. var cryptoJS = require("crypto-js");
  3. /**
  4. * The helper of api
  5. */
  6. class LjApiHelper
  7. {
  8. //获取课程信息
  9. static getApiForCourse(lessonId, courseId, eid)
  10. {
  11. var http = "http://tt-web.api.ai160.com/lesson/" + lessonId;
  12. http += "?courseId=" + courseId
  13. http += "&eid=" + eid
  14. http += "&cache=true";
  15. return http;
  16. }
  17. static getApiForDown(lessonId)
  18. {
  19. return "http://tt-web.api.ai160.com/callback/download/add?lessonId=" + lessonId;
  20. }
  21. }
  22. module.exports = LjApiHelper;