|
@@ -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);
|