dever %!s(int64=7) %!d(string=hai) anos
pai
achega
143d478875
Modificáronse 2 ficheiros con 8 adicións e 2 borrados
  1. 1 1
      database/token.php
  2. 7 1
      lib/Wechat.php

+ 1 - 1
database/token.php

@@ -94,6 +94,6 @@ return array
 	(
 		'delete' => false,
 		'insert' => false,
-		'edit' => false,
+		//'edit' => false,
 	),
 );

+ 7 - 1
lib/Wechat.php

@@ -300,7 +300,13 @@ class Wechat
 				$param = $this->param($method, $param);
 			}
 
-			$result = json_decode(Dever::curl($param['url'], $param['param'], $param['method'], $param['json']), true);
+			$result = Dever::curl($param['url'], $param['param'], $param['method'], $param['json']);
+
+			if (isset($param['response']['img'])) {
+				return $result;
+			}
+
+			$result = json_decode($result, true);
 			$this->log($result, $param['name'], $param['url'], $param['param']);
 		}
 		if (isset($result['errcode']) && $result['errcode'] != 0) {