TJCU authserver simulation
npm install --save auth-tjcu
// or
yarn add auth-tjcu
const authTJCU = require('auth-tjcu');
async function login() {
const result = await authTJCU('http://j.tjcu.edu.cn/caslogin.jsp', {
username: 'stuid',
password: 'pwd',
})
console.log(result);
/*
resilt will be
{
state: 1,
cookies: 'cookies'
}
or
{
state: 0,
msg: 'message'
}
*/
}