Skip to content

Commit

Permalink
更新url协议
Browse files Browse the repository at this point in the history
  • Loading branch information
YanhuiJessica committed Apr 21, 2024
1 parent c893063 commit 7df44e2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "troncuclass",
"version": "1.0.2",
"version": "1.0.3",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.1",
Expand Down
6 changes: 3 additions & 3 deletions public/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ xhr.onerror = function() {
console.log('An error occurred fetching the JSON');
};

xhr.open('GET', `http://courses.cuc.edu.cn/api/courses/${courseId}/activities`, true);
xhr.open('GET', `https://courses.cuc.edu.cn/api/courses/${courseId}/activities`, true);
xhr.send();

xhrDl.onload = function() {
Expand All @@ -29,7 +29,7 @@ xhrDl.onload = function() {
function(response) {
if (response.state) {
if (uploads[uindex].fileInfo.type != 'video') {
let markReadUrl = `http://courses.cuc.edu.cn/api/course/activities-read/${uploads[uindex].cwid}`;
let markReadUrl = `https://courses.cuc.edu.cn/api/course/activities-read/${uploads[uindex].cwid}`;
fetch(markReadUrl, {
method: 'POST',
headers: {
Expand All @@ -46,7 +46,7 @@ xhrDl.onload = function() {
};

function startDownload(reference_id) {
xhrDl.open('GET', `http://courses.cuc.edu.cn/api/uploads/reference/document/${reference_id}/url?preview=true`, true);
xhrDl.open('GET', `https://courses.cuc.edu.cn/api/uploads/reference/document/${reference_id}/url?preview=true`, true);
xhrDl.send();
}

Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json.chrome
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"manifest_version": 3,
"name": "TronCUClass",
"version": "1.0.2",
"version": "1.0.3",

"description": "CUC 畅课课件下载(支持所有格式) Download coursewares for CUC Tronclass (all types available)",
"homepage_url": "https://github.com/YanhuiJessica/TronCUClass",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json.firefox
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"manifest_version": 2,
"name": "TronCUClass",
"version": "1.0.2",
"version": "1.0.3",

"description": "CUC 畅课课件下载(支持所有格式) Download coursewares for CUC Tronclass (all types available)",
"homepage_url": "https://github.com/YanhuiJessica/TronCUClass",
Expand Down

0 comments on commit 7df44e2

Please sign in to comment.