Exemple #1
0
def weiXinLogin(request):
    if hasattr(request, 'param'):
        user = ParseTemplate().formatExpected(request.param['user'])
        pwd = ParseTemplate().formatExpected(request.param['pwd'])
        L = WeiXinLogin(user, pwd)
    else:
        L = WeiXinLogin()
    Session = L.login()
    return Req(Session)
Exemple #2
0
def rmpsLogin(request):
    """路边车场"""
    if hasattr(request, 'param'):
        user = ParseTemplate().formatExpected(request.param['user'])
        pwd = ParseTemplate().formatExpected(request.param['pwd'])
        L = RoadSideLogin(user, pwd)
    else:
        L = RoadSideLogin()
    Session = L.login()
    return Req(Session)
Exemple #3
0
def centralTollLogin(request):
    """中央收费"""
    if hasattr(request, 'param'):
        user = ParseTemplate().formatExpected(request.param['user'])
        pwd = ParseTemplate().formatExpected(request.param['pwd'])
        L = CentralTollLogin(user, pwd)
    else:
        L = CentralTollLogin()
    Session = L.login()
    return Req(Session)
Exemple #4
0
def userLogin():
    L = Login()
    Session = L.login()
    return Req(Session)
Exemple #5
0
def openYDTLogin():
    """开放平台"""
    L = OpenYDTLogin()
    Session = L.login()
    return Req(Session)