public static function checkIsSuc($res) { $result = true; if (is_string($res)) { $res = json_decode($res, true); } if (isset($res['errcode']) && 0 !== (int) $res['errcode']) { array_push(self::$ERROR_LOGS, $res); $result = false; self::$ERROR_NO = $res['errcode']; } return $result; }