Example #1
0
 def call_login(self):
     """
     登录回调方法
     :return:
     """
     login = GoLogin(self.httpClint, self.confUrl)
     login.go_login()
Example #2
0
 def call_login(self):
     """登录回调方法"""
     go_login()
Example #3
0
 def call_login(self):
     """登录回调方法"""
     login.go_login(self.ticket_config).login()
Example #4
0
            except PassengerUserException as e:
                print(e.message)
                break
            except ticketConfigException as e:
                print(e.message)
                break
            except ticketIsExitsException as e:
                print(e.message)
                break
            except ticketNumOutException as e:
                print(e.message)
                break
            except ValueError as e:
                if e.message == "No JSON object could be decoded":
                    print("12306接口无响应,正在重试")
                else:
                    print(e.message)
            except KeyError as e:
                print(e.message)
            except TypeError as e:
                print(e.message)
            except socket.error as e:
                print(e.message)




if __name__ == '__main__':
    login.go_login().login()
    # a = select('上海', '北京')
    # a.main()