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 4e1523c6
authored
Mar 15, 2017
by
HanSon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加 被邀请
1 parent
d4a8ea8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/Message/Entity/GroupChange.php
src/Message/Entity/GroupChange.php
View file @
4e1523c
...
...
@@ -29,7 +29,10 @@ class GroupChange extends Message implements MessageInterface
public
function
make
()
{
if
(
str_contains
(
$this
->
msg
[
'Content'
],
'加入了群聊'
)){
if
(
str_contains
(
$this
->
msg
[
'Content'
],
'邀请你'
)){
print_r
(
$this
->
msg
);
$this
->
action
=
'INVITE'
;
}
elseif
(
str_contains
(
$this
->
msg
[
'Content'
],
'加入了群聊'
)){
$this
->
action
=
'ADD'
;
Console
::
debug
(
"检测到
{
$this
->
from
[
'NickName'
]
}
有新成员,正在刷新群成员列表..."
);
(
new
ContactFactory
())
->
makeContactList
();
...
...
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