php-alert-client/tests/text.php
2019-07-02 16:33:40 +08:00

24 lines
442 B
PHP

<?php
error_reporting(E_ALL);
ini_set('display_errors', 'stderr');
require_once dirname(__DIR__).'/vendor/autoload.php';
//$ret = chat_card_alert('szjesh','dfdfdf');
//var_dump($ret);
//if( $ret['err_code'] == '0' ){
// echo "发送成功\n";
//}else{
// echo "发送失败,原因{$ret['err_msg']}\n";
//}
$content = [
'msgtype' => 'text',
'text' => [
'content' => '!',
]
];
bot_notify('inventory',$content);