dever 7 years ago
parent
commit
df99cd4899
1 changed files with 4 additions and 8 deletions
  1. 4 8
      main/lib/Wechat.php

+ 4 - 8
main/lib/Wechat.php

@@ -280,14 +280,10 @@ class Wechat
 		}
 		//print_r($param);die;
 		if (isset($result['errcode']) && $result['errcode'] != 0) {
-			if ($result['errcode'] == '40001') {
-				$this->oauth($param['id'], 2000, true);
-			} else {
-				$result = $param + $result;
-				Dever::log($result);
-				if ($alert) {
-					Dever::alert(json_encode($result, JSON_UNESCAPED_UNICODE));
-				}
+			$result = $param + $result;
+			Dever::log($result);
+			if ($alert) {
+				Dever::alert(json_encode($result, JSON_UNESCAPED_UNICODE));
 			}
 		}