微信公众号获取用户基本信息返回值部份是空值?
以下是最近获取用户信息的返回值,除了["openid"]、["nickname"]、["headimgurl"]、["unionid"]这些都有,其他都返回空字串,是怎么回事呢?
P.S.之前是都有的
调用接口如下:
https://api.weixin.qq.com/sns/userinfo?access_token="xxxxxxxxxxxxx"&openid="xxxxxxxxxxxxx"&lang=zh_CN
object(stdClass)#1 (10) {
["openid"]=>
string(28) "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
["nickname"]=>
string(5) "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
["sex"]=>
int(0)
["language"]=>
string(0) ""
["city"]=>
string(0) ""
["province"]=>
string(0) ""
["country"]=>
string(0) ""
["headimgurl"]=>
string(131) "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
["privilege"]=>
array(0) {
}
["unionid"]=>
string(28) "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}