Browse Source

测试代码

chenbo 4 years ago
parent
commit
ad4786f4b6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/common/weixin_public.class.php

+ 2 - 0
lib/common/weixin_public.class.php

@@ -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'];