提交 f6f8bd05 编写于 作者: L ljc545w

更新py示例文件

上级 5c557838
......@@ -132,13 +132,18 @@ class WeChatRobot():
_EnumFriendStatus = {
0xB0:'被删除',
0xB1:'是好友',
0xB2:'已拉黑',
0xB5:'被拉黑',
}
status = self.robot.CCheckFriendStatus(wxid)
if status == 0x0:
print('请先初始化再进行检测!')
assert False
return _EnumFriendStatus[status]
try:
return _EnumFriendStatus[status]
except KeyError:
return "未知状态:{}".format(
hex(status).upper().replace('0X','0x'))
def test_SendText():
import os
......@@ -185,4 +190,4 @@ def test_FriendStatus():
if __name__ == '__main__':
test_SendText()
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册