|
|
@@ -65,6 +65,8 @@ class weixin_public
|
|
|
//$jsonInfo = iconv('ISO-8859-1', 'UTF-8', $jsonInfo);
|
|
|
$rs = json_decode($jsonInfo, true); //接受一个 JSON 格式的字符串并且把它转换为 PHP 变量
|
|
|
|
|
|
+ return $rs;
|
|
|
+
|
|
|
$attr['country'] = $rs['country'];
|
|
|
$attr['province'] = $rs['province'];
|
|
|
$attr['city'] = $rs['city'];
|