Giter Club home page Giter Club logo

sau-library-assistant's Introduction

已经不再更新,改用laravel重构中

沈阳航空航天大学图书馆API 列表


//返回内容
//成功
{"ret":1,"act":"login","msg":"ok","data":{"id":"1434*****219","accno":"100***214","name":"***","phone":"18940046581","email":"[email protected]","msn":"","ident":"4194560","dept":"安全工程学院","deptid":"1004***3","tutor":null,"tutorid":null,"cls":"安全1**2","clsid":"100***636","receive":true,"tsta":null,"rtsta":null,"pro":null,"score":100,"credit":[["研修间","100","100",""],["未启用","100","100",""]],"role":"13***30"},"ext":null}
//失败
{"ret":0,"act":"login","msg":"您的密码输入有误-本IP还有【4】次登录机会","data":null,"ext":null}
参数列表:
{
            'dev_id'    =>  '', // 座位唯一编号(在获取座位编号接口获取)
            'lab_id'    =>  '', //留空
            'kind_id'   =>  '', //留空
            'room_id'   =>  '', //留空
            'type'      =>  'dev', //默认dev
            'prop'      =>  '', //留空
            'test_id'   =>  '', //留空
            'term'      =>  '', //留空
            'test_name' =>  '', //留空
            'start'     =>  '2017-12-23 12:00', //类似如此时间格式
            'end'       =>  '2017-12-23 14:00', //类似如此时间格式
            'start_time'=>  '1200', //与start参数时间相对应
            'end_time'  =>  '1400', //与end参数时间相对应
            'up_file'   =>  '', //留空
            'memo'      =>  '', //留空
            'act'       =>  'set_resv', //固定值
            '_'         =>  time().rand(111,999), //毫秒级时间戳
}
//返回内容
//失败
{"ret":0,"act":"set_resv","msg":"2018-04-26参数错误,预约开始时间必须小于预约结束时间","data":null,"ext":null}
{"ret":0,"act":"set_resv","msg":"2018-04-26预约与现有预约冲突","data":null,"ext":null}
//成功
{"ret":1,"act":"set_resv","msg":"操作成功!","data":null,"ext":null}

参数列表:

{
    'byType'=>'devcls',
    'classkind'=>'8',
    'display'=>'fp',
    'md'=>'d',
    'room_id'=>'100456538', //房间号id,每个屋子有唯一的编号,通过教室编号对应表获得
    'purpose'=>'',
    'cld_name'=>'default',
    'date'=> '2017-12-21',  //查询日期,返回令人惊喜的数据
    'fr_start'=>'15:40',    //格式相同且合法
    'fr_end'=>'16:40',      //格式相同且合法
    'act'=>'get_rsv_sta',
    '_'=>'1514014834075',   //毫秒级时间戳
 }
屋子编号对应表:
{
    '701'   =>      '107396184',
    '702'   =>      '100457241',
    '708'   =>      '101155530',
    '634'   =>      '100456540',
    '637'   =>      '100456542',
    '643'   =>      '100456544',
    '648'   =>      '100456546',
    '652'   =>      '100456548',
    '655'   =>      '100456550',
    '620'   =>      '100456448',
    '623'   =>      '100456530',
    '626'   =>      '100456532',
    '629'   =>      '100456534',
    '630'   =>      '100456536',
    '631'   =>      '100456538',
    //更多待续。。
}
   //数据过于复杂,请自行测试,漏洞来自此接口

参数说明:

{
    'type'  => '',
    'term'  =>'***',    //用户姓名
    '_'     => time().rand(111,999),
}
[{"id":"21","name": "陈*","label": "陈*(计算机学院)","szLogonName": "15***101","szHandPhone": "180******27","szTel": "","szEmail": "22******[email protected]"}]
  • 5 预约删除接口

http://libreserve.sau.edu.cn/ClientWeb/pro/ajax/reserve.aspx?act=del_resv&id=113138064&_=1524714662558

//成功
{"ret":1,"act":"del_resv","msg":"操作成功!","data":null,"ext":null}

sau-library-assistant's People

Contributors

btainlee avatar btainleer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.