yingzi 1 éve
szülő
commit
b382080649
1 módosított fájl, 5 hozzáadás és 5 törlés
  1. 5 5
      library/lib/weixina.php

+ 5 - 5
library/lib/weixina.php

@@ -123,12 +123,12 @@ class weixina {
             "is_hyaline" => false,//是否透明底色
         ));
         $data = $this->Post($postData,$url);
+        $res = $data;
+        if(empty($data)){
+            return false;
+        }
+        $data = json_decode($data,true);
         return $data;
-//        $res = $data;
-//        if(empty($data)){
-//            return false;
-//        }
-//        $data = json_decode($data,true);
 //        if(empty($data) || empty($data["phone_info"]) || empty($data["phone_info"]["purePhoneNumber"])){
 //            $this->error="返回参数名称错误".$res;
 //            return false;