rabin 1 年之前
父節點
當前提交
e8e894866c
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      lib/Wechat.php

+ 2 - 3
lib/Wechat.php

@@ -314,7 +314,6 @@ class Wechat
 			if ($method) {
 				$param = $this->param($method, $param);
 			}
-
 			$result = Dever::curl($param['url'], $param['param'], $param['method'], $param['json']);
 
 			if (isset($param['response']['img'])) {
@@ -325,9 +324,9 @@ class Wechat
 			$this->log($result, $param['name'], $param['url'], $param['param']);
 		}
 		if (isset($result['errcode']) && $result['errcode'] != 0) {
-			if ($result['errcode'] == 40001) {
+			if ($result['errcode'] == 40001 || $result['errcode'] == 41001) {
 				$token = $this->token(false, false, 4000, true);
-				return $this->curl($type, array(), $alert);
+				return $this->curl($method, $param, $alert, $type);
 			}
 			$result = $param + $result;
 			Dever::log($result);