コード例 #1
0
def EamsFreeroomBuildings():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['session']
    )
    return HPUEams.eams_freeroom_buildings(
        request.args['session']
    )
コード例 #2
0
def LibSession():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['ip']
    )
    return HPULib.lib_session(
        request.args['ip']
    )
コード例 #3
0
def ZhhqSession():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['ip']
    )
    return HPUZhhq.get_session(
        request.args['ip']
    )
コード例 #4
0
def TcCode():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['session', 'ip']
    )
    return HPUVPN.school_tc_code(
        request.args['session'],
        request.args['ip']
    )
コード例 #5
0
def AnnList():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['session', 'annid']
    )
    return HPUVPN.school_ann_download(
        request.args['session'],
        request.args['annid']
    )
コード例 #6
0
def LibLoanList():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['session', 'ip']
    )
    return HPULib.lib_loan_list(
        request.args['session'],
        request.args['ip']
    )
コード例 #7
0
def BookCollection():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['recordId', 'ip']
    )
    return HPULib.lib_book_collection(
        request.args['recordId'],
        request.args['ip']
    )
コード例 #8
0
def EamsBind():
    BaseValidate.paramsExist(
        request.args.to_dict(), 
        ['session']
    )
    return HPUEams.bind_eams(
        request.args['session'], 
        request.args['type']
    )
コード例 #9
0
def BookDetail():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['recordId', 'ip']
    )
    return HPULib.lib_book_detail(
        request.args['recordId'],
        request.args['ip']
    )
コード例 #10
0
def SchoolLectures():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['session', 'page', 'ip']
    )
    return HPUVPN.school_lectures(
        request.args['session'],
        request.args['page'],
        request.args['ip']
    )
コード例 #11
0
def BookCover():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['recordId', 'ip']
    )
    return HPULib.lib_book_cover(
        request.args['recordId'],
        False,
        request.args['ip']
    )
コード例 #12
0
def BookSimpleSearch():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['keyword', 'page', 'ip']
    )
    return HPULib.lib_simple_search(
        request.args['keyword'],
        request.args['page'],
        request.args['ip']
    )
コード例 #13
0
def HpuvpnLogin():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['jwzh', 'jwmm', 'ip']
    )
    return HPUVPN.login_hpu_vpn(
        request.args['jwzh'],
        request.args['jwmm'],
        request.args['ip']
    )
コード例 #14
0
def TcGrade():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['session', 'usernum', 'userpwd', 'captcha', 'ip']
    )
    return HPUVPN.school_tc_grade(
        request.args['session'],
        request.args['usernum'],
        request.args['userpwd'],
        request.args['captcha'],
        request.args['ip']
    )
コード例 #15
0
def LibLogin():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['session', 'username', 'password', 'captcha', 'codeKey', 'ip']
    )
    return HPULib.lib_login(
        request.args['session'],
        request.args['username'],
        request.args['password'],
        request.args['captcha'],
        request.args['codeKey'],
        request.args['ip'],
    )
コード例 #16
0
def EamsFreeroomSearch():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['session','buildingId','dateBegin','dateEnd','section','mode', 'ip']
    )
    return HPUEams.eams_freeroom_search(
        request.args['session'],
        request.args['buildingId'],
        request.args['dateBegin'],
        request.args['dateEnd'],
        request.args['section'],
        request.args['mode'],
        request.args['ip']
    )
コード例 #17
0
def ZhhqLogin():
    BaseValidate.paramsExist(
        request.args.to_dict(),
        ['username', 'password', 'session', 'lt', 'execution', 'token', 'captcha', 'ip']
    )
    return HPUZhhq.login_zhhq(
        request.args['session'],
        request.args['username'],
        request.args['password'],
        request.args['captcha'],
        request.args['lt'],
        request.args['execution'],
        request.args['token'],
        request.args['ip'],
    )
コード例 #18
0
def EamsLogin():
    BaseValidate.paramsExist(
        request.args.to_dict(), 
        ['ip', 'username', 'password', 'captcha', 'session', 'sha1H', 'aesH']
    )
    args = request.args
    return HPUEams.login_eams(
        args['ip'],
        args['username'],
        args['password'],
        args['captcha'],
        args['session'],
        args['sha1H'],
        args['aesH']    
    )