Commit 3cadcda5 by HanSon Committed by GitHub

Merge pull request #20 from HanSon/dev

降低依赖
2 parents 5c36d414 7bfb8a70
......@@ -17,7 +17,7 @@ composer require hanson/vbot
然后执行``` php example/index.php ```
PS:运行后二维码将保存于设置的缓存目录,命名为qr.png,控制台也会显示二维码,扫描即可
PS:运行后二维码将保存于设置的缓存目录,命名为qr.png,控制台也会显示二维码,扫描即可(linux用户请确保已经打开ANSI COLOR)
*警告!执行前请先查看`index.php`的代码,注释掉你认为不需要的代码,避免对其他人好友造成困扰*
......
......@@ -10,17 +10,15 @@
],
"require": {
"guzzlehttp/guzzle": "^6.2",
"symfony/dom-crawler": "^3.2",
"symfony/dom-crawler": "2.8.*|3.0.*|3.1.*",
"endroid/qrcode": "^1.7",
"symfony/css-selector": "^3.2",
"symfony/css-selector": "2.8.*|3.0.*|3.1.*",
"pimple/pimple": "^3.0",
"illuminate/support": "^5.3",
"nesbot/carbon": "^1.21",
"php": ">=7.0.0",
"symfony/var-dumper": "^3.2",
"aferrandini/phpqrcode": "^1.0",
"symfony/process": "^3.2",
"symfony/console": "^3.2"
"symfony/console": "3.*"
},
"minimum-stability": "dev",
"autoload": {
......
......@@ -21,7 +21,8 @@ $robot->server->setCustomerHandler(function() use (&$flag){
// RemarkName,代表的改用户在你通讯录的名字
$contact = contact()->getUsernameByRemarkName('hanson');
if ($contact === false){
dd("找不到你要的联系人,请确认联系人姓名");
echo("找不到你要的联系人,请确认联系人姓名");
return;
}
if(!$flag){
Text::send($contact, '来轰炸吧');
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!