rabin пре 2 година
родитељ
комит
51d4d124b0
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      lib/Wechat.php

+ 4 - 0
lib/Wechat.php

@@ -150,6 +150,10 @@ class Wechat
 				$param = array('type' => $type, 'appid' => $this->project['appid']);
 				$param = Dever::token($param, $this->project['secret']);
 				$result = Dever::curl($this->project['url'], $param);
+				$result = Dever::json_decode($result);
+				if (isset($result['data'])) {
+					$result = $result['data'];
+				}
 			}
 			if (!$result) {
 				if ($refresh) {