-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
项目改用ESM模块化;实现IM协议自动监测签到;使用prompts改写交互部分;
- Loading branch information
Showing
17 changed files
with
472 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
{ | ||
"name": "chaoxing-sign-cli", | ||
"version": "2.4.5", | ||
"version": "3.4.5", | ||
"description": "超星学习通签到命令行工具", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "(node ./src/index.js && echo \"正在检查更新,若等待时间过长请挂代理...(连按 Ctrl+C 终止)\" && git pull) || (echo \"正在检查更新,若等待时间过长请挂代理...(连按 Ctrl+C 终止)\" && git pull)", | ||
"serve": "node ./src/serve.js" | ||
"start": "(node --no-warnings ./src/index.js && echo \"正在检查更新,若等待时间过长请挂代理...(连按 Ctrl+C 终止)\" && git pull) || (echo \"正在检查更新,若等待时间过长请挂代理...(连按 Ctrl+C 终止)\" && git pull)", | ||
"serve": "node --no-warnings ./src/serve.js", | ||
"monitor": "node --no-warnings ./src/monitor.js" | ||
}, | ||
"repository": "https://github.com/cxOrz/chaoxing-sign-cli.git", | ||
"author": "mcx", | ||
"type": "module", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@koa/router": "^10.1.1", | ||
"crypto-js": "^4.1.1", | ||
"form-data": "^4.0.0", | ||
"koa": "^2.13.4", | ||
"koa-bodyparser": "^4.3.0", | ||
"kolorist": "^1.5.1", | ||
"multiparty": "^4.2.3", | ||
"prompts": "^2.4.2", | ||
"serverless-http": "^3.0.1", | ||
"tencentcloud-sdk-nodejs": "^4.0.327" | ||
"tencentcloud-sdk-nodejs": "^4.0.327", | ||
"ws": "^8.8.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,52 @@ | ||
module.exports = { | ||
LOGIN_PAGE: { | ||
URL: 'http://passport2.chaoxing.com/mlogin?fid=&newversion=true&refer=http%3A%2F%2Fi.chaoxing.com', | ||
METHOD: 'GET' | ||
}, | ||
LOGIN: { | ||
URL: 'http://passport2.chaoxing.com/fanyalogin', | ||
METHOD: 'POST', | ||
}, | ||
PRESIGN: { | ||
URL: 'https://mobilelearn.chaoxing.com/newsign/preSign', | ||
METHOD: 'GET' | ||
}, | ||
PPTSIGN: { | ||
URL: 'https://mobilelearn.chaoxing.com/pptSign/stuSignajax', | ||
METHOD: 'GET' | ||
}, | ||
COURSELIST: { | ||
URL: 'http://mooc1-1.chaoxing.com/visit/courselistdata', | ||
METHOD: 'POST' | ||
}, | ||
BACKCLAZZDATA: { | ||
URL: 'http://mooc1-api.chaoxing.com/mycourse/backclazzdata', | ||
METHOD: 'GET' | ||
}, | ||
ACTIVELIST: { | ||
URL: 'https://mobilelearn.chaoxing.com/v2/apis/active/student/activelist', | ||
METHOD: 'GET' | ||
}, | ||
ACCOUNTMANAGE: { | ||
URL: 'http://passport2.chaoxing.com/mooc/accountManage', | ||
METHOD: 'GET' | ||
}, | ||
PANCHAOXING: { | ||
URL: 'https://pan-yz.chaoxing.com', | ||
METHOD: 'GET' | ||
}, | ||
PANLIST: { | ||
URL: 'https://pan-yz.chaoxing.com/opt/listres', | ||
METHOD: 'POST' | ||
}, | ||
PANTOKEN: { | ||
URL: 'https://pan-yz.chaoxing.com/api/token/uservalid', | ||
METHOD: 'GET' | ||
}, | ||
PANUPLOAD: { | ||
URL: 'https://pan-yz.chaoxing.com/upload', | ||
METHOD: 'POST' | ||
} | ||
export const LOGIN_PAGE = { | ||
URL: 'http://passport2.chaoxing.com/mlogin?fid=&newversion=true&refer=http%3A%2F%2Fi.chaoxing.com', | ||
METHOD: 'GET' | ||
} | ||
export const LOGIN = { | ||
URL: 'http://passport2.chaoxing.com/fanyalogin', | ||
METHOD: 'POST', | ||
} | ||
export const PRESIGN = { | ||
URL: 'https://mobilelearn.chaoxing.com/newsign/preSign', | ||
METHOD: 'GET' | ||
} | ||
export const PPTSIGN = { | ||
URL: 'https://mobilelearn.chaoxing.com/pptSign/stuSignajax', | ||
METHOD: 'GET' | ||
} | ||
export const COURSELIST = { | ||
URL: 'http://mooc1-1.chaoxing.com/visit/courselistdata', | ||
METHOD: 'POST' | ||
} | ||
export const BACKCLAZZDATA = { | ||
URL: 'http://mooc1-api.chaoxing.com/mycourse/backclazzdata', | ||
METHOD: 'GET' | ||
} | ||
export const ACTIVELIST = { | ||
URL: 'https://mobilelearn.chaoxing.com/v2/apis/active/student/activelist', | ||
METHOD: 'GET' | ||
} | ||
export const ACCOUNTMANAGE = { | ||
URL: 'http://passport2.chaoxing.com/mooc/accountManage', | ||
METHOD: 'GET' | ||
} | ||
export const PANCHAOXING = { | ||
URL: 'https://pan-yz.chaoxing.com', | ||
METHOD: 'GET' | ||
} | ||
export const PANLIST = { | ||
URL: 'https://pan-yz.chaoxing.com/opt/listres', | ||
METHOD: 'POST' | ||
} | ||
export const PANTOKEN = { | ||
URL: 'https://pan-yz.chaoxing.com/api/token/uservalid', | ||
METHOD: 'GET' | ||
} | ||
export const PANUPLOAD = { | ||
URL: 'https://pan-yz.chaoxing.com/upload', | ||
METHOD: 'POST' | ||
} | ||
export const WEBIM = { | ||
URL: 'https://im.chaoxing.com/webim/me', | ||
METHOD: 'GET' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.