php-alert-client/tests/text.php
2018-12-21 18:34:43 +08:00

16 lines
307 B
PHP

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