mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 01:20:08 +08:00
[update] Notice
This commit is contained in:
parent
86bc55fc1a
commit
11d5f2aa1f
@ -192,8 +192,10 @@ class Curl
|
||||
// var_dump($e->getRequest());
|
||||
if ($e->hasResponse()) var_dump($e->getResponse());
|
||||
} catch (\Exception $e) {
|
||||
// $e->getHandlerContext()
|
||||
// var_dump($e);
|
||||
}
|
||||
Log::warning("Target -> URL: {$url} METHOD: {$method}");
|
||||
Log::warning("CURl -> RETRY: {$retry} ERROR: {$e->getMessage()} ERRNO: {$e->getCode()} STATUS: Waiting for recovery!");
|
||||
sleep(15);
|
||||
}
|
||||
|
||||
@ -320,7 +320,7 @@ class Notice
|
||||
'user_id' => getenv('NOTIFY_CQ_QQ'),
|
||||
'message' => $info['content']
|
||||
];
|
||||
$raw = Curl::post('other', $url, $payload);
|
||||
$raw = Curl::get('other', $url, $payload);
|
||||
// {"data":{"message_id":123456},"retcode":0,"status":"ok"}
|
||||
$de_raw = json_decode($raw, true);
|
||||
if ($de_raw['retcode'] == 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user