Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

WXSearchContact Result and Unit test #54

Closed
lijiarui opened this issue Jun 11, 2018 · 1 comment
Closed

WXSearchContact Result and Unit test #54

lijiarui opened this issue Jun 11, 2018 · 1 comment

Comments

@lijiarui
Copy link
Member

lijiarui commented Jun 11, 2018

Call WXSearchContact, then get following results:

NO FRINEDSHIP

1. When user_name start with wxid_

{ big_head: '',
  city: '',
  country: '',
  message:
   '\n�\u0002<e>\n<ShowType>1</ShowType>\n<Content><![CDATA[找不到相关帐号或内容]]></Content>\n<Url><![CDATA[]]></Url>\n<DispSec>30</DispSec>\n<Title><![CDATA[]]></Title>\n<Action>2</Action>\n<DelayConnSec>0</DelayConnSec>\n<Countdown>0</Countdown>\n<Ok><![CDATA[]]></Ok>\n<Cancel><![CDATA[]]></Cancel>\n</e>\n',
  nick_name: '',
  provincia: '',
  py_initial: '',
  quan_pin: '',
  sex: 0,
  signature: '',
  small_head: '',
  status: -24,
  stranger: '',
  user_name: '' }

非好友关系:

2. When the contact has set one's wxid

{
    "big_head": "http://wx.qlogo.cn/mmhead/ver_1/qyLeTYECeD4ZTmBXLl8ibmj892u1GrsnNguQz79fSRM6mFhZZFMbvIsK78b2rJtmOu8p59JpLvBpt7sfnWjd8cQ/0", 
    "city": "Haidian", 
    "country": "CN", 
    "message": "
�Everything is OK", 
    "nick_name": "李佳芮", 
    "provincia": "Beijing", 
    "py_initial": "QQ512436430", 
    "quan_pin": "qq512436430", 
    "sex": 2, 
    "signature": "总会过去,总会到来", 
    "small_head": "http://wx.qlogo.cn/mmhead/ver_1/qyLeTYECeD4ZTmBXLl8ibmj892u1GrsnNguQz79fSRM6mFhZZFMbvIsK78b2rJtmOu8p59JpLvBpt7sfnWjd8cQ/132", 
    "status": 0, 
    "stranger": "v2_6fe3e85df4d45def0b6e3d10e54c0910f11c4c323e2cdf5d7e13c977800b1c430b134c6b292e4c87cfb809bc0e1ebd51@stranger", 
    "user_name": "v1_f2dfd4342ed6415a0a1d59bf581aa9b5511c7688212c41c79acb3fd14a1e1526@stranger"
}

FRIENDSHIP

{ big_head:
   'http://wx.qlogo.cn/mmhead/ver_1/qyLeTYECeD4ZTmBXLl8ibmj892u1GrsnNguQz79fSRM6mFhZZFMbvIsK78b2rJtmOu8p59JpLvBpt7sfnWjd8cQ/0',
  city: 'Haidian',
  country: 'CN',
  message: '\n\u0010Everything is OK',
  nick_name: '李佳芮',
  provincia: 'Beijing',
  py_initial: 'QQ512436430',
  quan_pin: 'qq512436430',
  sex: 2,
  signature: '总会过去,总会到来',
  small_head:
   'http://wx.qlogo.cn/mmhead/ver_1/qyLeTYECeD4ZTmBXLl8ibmj892u1GrsnNguQz79fSRM6mFhZZFMbvIsK78b2rJtmOu8p59JpLvBpt7sfnWjd8cQ/132',
  status: 0,
  stranger: '',
  user_name: 'qq512436430' }
04:40:29 SILL PadchatRpc WXSearchContact result: {"big_head":"http://wx.qlogo.cn/mmhead/ver_1/qyLeTYECeD4ZTmBXLl8ibmj892u1GrsnNguQz79fSRM6mFhZZFMbvIsK78b2rJtmOu8p59JpLvBpt7sfnWjd8cQ/0","city":"Haidian","country":"CN","message":"\n\u0010Everything is OK","nick_name":"李佳芮","provincia":"Beijing","py_initial":"QQ512436430","quan_pin":"qq512436430","sex":2,"signature":"总会过去,总会到来","small_head":"http://wx.qlogo.cn/mmhead/ver_1/qyLeTYECeD4ZTmBXLl8ibmj892u1GrsnNguQz79fSRM6mFhZZFMbvIsK78b2rJtmOu8p59JpLvBpt7sfnWjd8cQ/132","status":0,"stranger":"","user_name":"qq512436430"}
@lijiarui lijiarui changed the title WXSearchContact WXSearchContact Result and Unit test Jun 13, 2018
@windmemory
Copy link
Member

We need to use the response to create unit tests for method WXSearchContact

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants