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)
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)
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)
def userLogin(): L = Login() Session = L.login() return Req(Session)
def openYDTLogin(): """开放平台""" L = OpenYDTLogin() Session = L.login() return Req(Session)