Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
vbot
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3cadcda5
authored
Jan 21, 2017
by
HanSon
Committed by
GitHub
Jan 21, 2017
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #20 from HanSon/dev
降低依赖
2 parents
5c36d414
7bfb8a70
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
README.md
composer.json
example/custom.php
README.md
View file @
3cadcda
...
...
@@ -17,7 +17,7 @@ composer require hanson/vbot
然后执行
``` php example/index.php ```
PS:运行后二维码将保存于设置的缓存目录,命名为qr.png,控制台也会显示二维码,扫描即可
PS:运行后二维码将保存于设置的缓存目录,命名为qr.png,控制台也会显示二维码,扫描即可
(linux用户请确保已经打开ANSI COLOR)
*警告!执行前请先查看`index.php`的代码,注释掉你认为不需要的代码,避免对其他人好友造成困扰*
...
...
composer.json
View file @
3cadcda
...
...
@@ -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"
:
{
...
...
example/custom.php
View file @
3cadcda
...
...
@@ -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
,
'来轰炸吧'
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment