Commit 4b399344 by xmy

feat:构建通知

parent b1191262
......@@ -16,8 +16,9 @@ $basePath = dirname(__DIR__, 3);
* ];
*/
function buildNotice($msg)
{
if (!function_exists('buildNotice')){
function buildNotice($msg)
{
$jsonStr = json_encode([
'msgtype' => 'text',
'text' => [
......@@ -40,6 +41,7 @@ function buildNotice($msg)
curl_close($ch);
return array($httpCode, $response);
}
}
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment