old_contents: class WebQQClient(object):
      def __init__(self, *args, **kwargs):
          super(WebQQClient, self).__init__()
  
      def need_username(self):
          return False
  
      def need_password(self):
          return False
  
      def check_verify_code(self, uin=None, appid=None):
          verify_code1 = ''
          verify_code2 = ''
          return (verify_code1, verify_code2)
  
      def need_login_ptlogin2(self):
          return True
  
      def login_ptlogin2(self, username = None, password = None, verify_code1 = None, verify_code2 = None):
          return True
  
      def login(self, username=None, password=None):
          return True
  
      def logout(self):
          return True
  
      def heartbeat(self):
          print 'Bom..bong!'
  
      def poll(self):
          return 'poll'
  
      def handle(self, data):
          print data
  
      def get_handlers(self):
          return [self.handle]
  
      def set_runflag(self, value):
          self.runflag = value
  
      def run_forever(self):
          i=0
          while True:
              i=i+1
              if i>100:
                  break
              print i
  
new_contents: class WebQQClient(object):
      def __init__(self, *args, **kwargs):
          super(WebQQClient, self).__init__()
  
      def need_username(self):
          return False
  
      def need_password(self):
          return False
  
      def check_verify_code(self, uin=None, appid=None):
          verify_code1 = ''
          verify_code2 = ''
          return (verify_code1, verify_code2)
  
      def need_login_ptlogin2(self):
          return True
  
      def login_ptlogin2(self, username = None, password = None, verify_code1 = None, verify_code2 = None):
          return True
  
      def need_login_web2(self):
          return True
  
      def login_web2(self):
          return True
  
      def login(self, username=None, password=None):
          return True
  
      def logout(self):
          return True
  
      def heartbeat(self):
          print 'Bom..bong!'
  
      def poll(self):
          return 'poll'
  
      def handle(self, data):
          print data
  
      def get_handlers(self):
          return [self.handle]
  
      def set_runflag(self, value):
          self.runflag = value
  
      def run_forever(self):
          i=0
          while True:
              i=i+1
              if i>100:
                  break
              print i
  
subject: 添加 need_login_web2 和login_web2函数, 用来检查是否需要登录webqq聊天接口和登录webqq聊天接口