request('GET', 'https://sc.ftqq.com/' . self::$systemConfig['server_chan_key'] . '.send', [ 'query' => [ 'text' => $title, 'desp' => $content ] ]); $result = json_decode($response->getBody()); if (!$result->errno) { Helpers::addEmailLog(1, '[ServerChan]' . $title, $content); } else { Helpers::addEmailLog(1, '[ServerChan]' . $title, $content, 0, $result->errmsg); } } catch (RequestException $e) { Log::error(Psr7\str($e->getRequest())); if ($e->hasResponse()) { Log::error(Psr7\str($e->getResponse())); } } } }