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) {