只知道wxid怎么添加好友

您所在的位置:网站首页 wxid_微信账号怎么才能添加 只知道wxid怎么添加好友

只知道wxid怎么添加好友

#只知道wxid怎么添加好友| 来源: 网络整理| 查看: 265

众所周知,wxid是微信最原始的ID,无论我们怎么修改微信号,这个凭证ID是一直不会改变了,也是为了能查到每个用户的信息,所以不要想着改变微信号就改变自己的ID了;

也有部分人可能被删除好友之后只能看到一个wxid不知道怎么去添加好友了,也有很多人会有大量的wxid不知道怎么操作还在苦苦寻找。

如果大家有这样子的困惑并且看到了我的文章,那么恭喜你,你找到了解决的办法。

finished_signal = pyqtSignal(object)   def __init__(self, parent=None, label=None, scroll_widget_layout=None, refresh_button=None, exit_button=None):     super().__init__(parent)     self.l = label     self.scroll_widget_layout = scroll_widget_layout     self.refresh_button = refresh_button     self.exit_button = exit_button   # 在控制台中写入信息 def outputWritten(self, text=None):     cursor = self.l.textCursor()     cursor.movePosition(QtGui.QTextCursor.End)     cursor.insertText(text)     self.l.setTextCursor(cursor)     self.l.ensureCursorVisible()   # 获取uuid def open_qr(self):     for get_count in range(1):         self.outputWritten('获取uuid中……\n')         uuid = itchat.get_QRuuid()         while uuid is None:             uuid = itchat.get_QRuuid()             time.sleep(1)         self.outputWritten('成功获取uuid\n')         if itchat.get_QR(uuid, picDir=r'%s' % os.path.join(current_path, 'qrcode.jpg')):             break         elif get_count >= 1:             self.outputWritten("获取二维码出错,请重启程序\n")             sys.exit()     return uuid   # 二维码登陆 def login_wechat(self):     try:         uuid = self.open_qr()         self.outputWritten("请扫描二维码\n")         waitForConfirm = False         while 1:             status = itchat.check_login(uuid)             if status == '200':                 break             elif status == '201':                 if waitForConfirm:                     self.outputWritten('请进行确认\n')                     waitForConfirm = True             elif status == '408':                 self.outputWritten('重新加载二维码\n')                 time.sleep(3)                 uuid = self.open_qr()                 waitForConfirm = False         userInfo = itchat.web_init()         # print(userInfo)         itchat.show_mobile_login()         print('itchat.show_mobile_login() 执行完成!')         # itchat.get_friends(True)         itchat.get_friends()         print('itchat.get_friends(update=True)[0:] 执行完成!')         self.outputWritten('登陆成功!账号为:%s\n' % userInfo['User']['NickName'])         itchat.start_receiving()         print('itchat.start_receiving() 执行完成!')         self.refresh_button.setText("已登录:{}".format(userInfo['User']['NickName']))         self.exit_button.setEnabled(True)     except Exception as e:         print("登录出错:", e)         self.outputWritten('登陆出错:{}\n'.format(e))       try:         # 获取群聊列表         chatrooms = itchat.get_chatrooms()         print('chatrooms = itchat.get_chatrooms() 执行完成!')         print(type(chatrooms))         #return chatrooms     except Exception as e:         self.outputWritten("获取群聊列表出错:{}\n".format(e))         try:         # 获取好友列表         friends = itchat.get_friends()         print('friends = itchat.get_friends() 执行完成!')         print(type(friends))         #return friends     except Exception as e:         self.outputWritten("获取群聊列表出错:{}\n".format(e))       try:         # 获取好友列表         mps = itchat.get_mps()         print('mps = itchat.get_mps() 执行完成!')         print(type(mps))         #return mps     except Exception as e:         self.outputWritten("获取群聊列表出错:{}\n".format(e))       if chatrooms and friends and mps:         return [chatrooms, friends, mps]   def run(self):     try:         self.refresh_button.setEnabled(False)         self.exit_button.setEnabled(True)         self.finished_signal.emit(self.login_wechat())     except Exception as e:         self.outputWritten("运行登录线程出错:{}\n".format(e))

这个代码是其他地方找来的,不建议尝试,想了解的看下图

 

这个是一个模板转换记录,大家想要解决可以随时跟我沟通;



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3