Skip to content

Commit

Permalink
删除了无关项
Browse files Browse the repository at this point in the history
  • Loading branch information
winrey committed Feb 25, 2019
1 parent 7a53810 commit 6d9d7a4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions core/requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,17 @@ function generate_grade_url(string $stu_id){
* @return string
*/
function generate_course_url(string $stu_id){
return "http://gdjwgl.bjut.edu.cn/xscj_gc2.aspx?xh=".$stu_id;
return "http://gdjwgl.bjut.edu.cn/xskbcx.aspx?xh=".$stu_id;
}

/**
* 用于生成查询考试的链接
* @param string $stu_id 学号
* @return string
*/
function generate_exam_url(string $stu_id){
return "http://gdjwgl.bjut.edu.cn/xskscx.aspx?xh=".$stu_id;
}

/**
* 可配合view_state_parser获取页面的 view state
Expand Down Expand Up @@ -122,8 +130,6 @@ function send_specified_grade_request(HttpHolder $http_holder,
* @param HttpHolder $http_holder 传入已经登录的HttpHolder
* @param string $stu_id 学号
* @param string $view_state
* @param string $current_year
* @param string $current_term
* @return mixed
*/
function send_all_grade_request(HttpHolder $http_holder,
Expand All @@ -135,8 +141,6 @@ function send_all_grade_request(HttpHolder $http_holder,
//查询总成绩
$post = array(
'__VIEWSTATE'=>$view_state,
// 'ddlXN'=>$current_year, //当前学年
// 'ddlXQ'=>$current_term, //当前学期
'Button6'=>'%B2%E9%D1%AF%D2%D1%D0%DE%BF%CE%B3%CC%D7%EE%B8%DF%B3%C9%BC%A8', //蜜汁
);

Expand Down

0 comments on commit 6d9d7a4

Please sign in to comment.