Commit b1191262 by xmy

feat:构建通知

parent 38f27acb
...@@ -16,7 +16,7 @@ $basePath = dirname(__DIR__, 3); ...@@ -16,7 +16,7 @@ $basePath = dirname(__DIR__, 3);
* ]; * ];
*/ */
function notice($msg) function buildNotice($msg)
{ {
$jsonStr = json_encode([ $jsonStr = json_encode([
'msgtype' => 'text', 'msgtype' => 'text',
...@@ -43,10 +43,9 @@ function notice($msg) ...@@ -43,10 +43,9 @@ function notice($msg)
} }
try { try {
var_dump(posix_getpid());
if (!env("NOT_NOTICE") && posix_getpid()==16) { if (!env("NOT_NOTICE") && posix_getpid()==16) {
$msg = "环境:" . env("ENVIRONMENT") . " 项目名称:" . APP_NAME . "————构建成功!"; $msg = "环境:" . env("ENVIRONMENT") . " 项目名称:" . APP_NAME . "————构建成功!";
notice($msg); buildNotice($msg);
} }
} catch (Exception $e) { } catch (Exception $e) {
var_dump($e->getMessage()); var_dump($e->getMessage());
......
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