Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
goods
Commits
3f5e6512
Commit
3f5e6512
authored
Sep 29, 2021
by
pengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update wx group chat
parent
69d3593f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
GroupChatService.php
application/services/wx/GroupChatService.php
+3
-3
No files found.
application/services/wx/GroupChatService.php
View file @
3f5e6512
...
@@ -18,7 +18,6 @@ class GroupChatService
...
@@ -18,7 +18,6 @@ class GroupChatService
{
{
public
$wxApp
;
public
$wxApp
;
public
$pageSize
=
100
;
public
$pageSize
=
100
;
public
$nextCursor
=
''
;
public
$ownerUserIds
=
[];
public
$ownerUserIds
=
[];
public
$departmentId
;
// 部门id
public
$departmentId
;
// 部门id
...
@@ -40,8 +39,9 @@ class GroupChatService
...
@@ -40,8 +39,9 @@ class GroupChatService
*/
*/
public
function
process
()
public
function
process
()
{
{
$nextCursor
=
''
;
// 下一页游标,首次为空,请求接口会返回
while
(
true
)
{
while
(
true
)
{
$result
=
$this
->
getGroupChatList
(
$
this
->
nextCursor
);
$result
=
$this
->
getGroupChatList
(
$nextCursor
);
if
(
empty
(
$result
[
'group_chat_list'
]))
{
if
(
empty
(
$result
[
'group_chat_list'
]))
{
break
;
break
;
}
}
...
@@ -62,7 +62,7 @@ class GroupChatService
...
@@ -62,7 +62,7 @@ class GroupChatService
if
(
empty
(
$result
[
'next_cursor'
]))
{
if
(
empty
(
$result
[
'next_cursor'
]))
{
break
;
break
;
}
}
$
this
->
nextCursor
=
$result
[
'next_cursor'
];
$nextCursor
=
$result
[
'next_cursor'
];
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment