Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
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
hujun
tl_estate
Commits
b8dce155
Commit
b8dce155
authored
Apr 29, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新经纪人缓存
parent
15e893c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Broker.php
application/index/controller/Broker.php
+4
-0
BrokerService.php
application/index/service/BrokerService.php
+3
-0
No files found.
application/index/controller/Broker.php
View file @
b8dce155
...
@@ -612,6 +612,8 @@ class Broker extends Basic
...
@@ -612,6 +612,8 @@ class Broker extends Basic
$message_data
[
'agent_id'
]
=
$ids
;
$message_data
[
'agent_id'
]
=
$ids
;
$push
->
record
(
4
,
0
,
0
,
$this
->
userId
,
$message_data
);
$push
->
record
(
4
,
0
,
0
,
$this
->
userId
,
$message_data
);
}
}
$redis
=
new
RedisCacheService
();
$redis
->
agentCache
(
$ids
);
return
$this
->
response
(
200
,
'成功'
,
$data
);
return
$this
->
response
(
200
,
'成功'
,
$data
);
}
else
{
}
else
{
return
$this
->
response
(
100
,
'失败'
,
$data
);
return
$this
->
response
(
100
,
'失败'
,
$data
);
...
@@ -662,6 +664,8 @@ class Broker extends Basic
...
@@ -662,6 +664,8 @@ class Broker extends Basic
if
(
!
empty
(
$ids
)
&&
!
empty
(
$data
[
'group_id'
]))
{
if
(
!
empty
(
$ids
)
&&
!
empty
(
$data
[
'group_id'
]))
{
if
(
$table
->
saveStatus
(
'auth_group_id'
,
$data
[
'group_id'
],
$ids
))
{
if
(
$table
->
saveStatus
(
'auth_group_id'
,
$data
[
'group_id'
],
$ids
))
{
$redis
=
new
RedisCacheService
();
$redis
->
agentCache
(
$ids
);
$msg
=
'成功'
;
$msg
=
'成功'
;
}
else
{
}
else
{
$code
=
101
;
$code
=
101
;
...
...
application/index/service/BrokerService.php
View file @
b8dce155
...
@@ -283,6 +283,9 @@ class BrokerService
...
@@ -283,6 +283,9 @@ class BrokerService
$push
->
record
(
4
,
0
,
[
$data
[
'id'
]],
$operation_id
,
$message_data
);
$push
->
record
(
4
,
0
,
[
$data
[
'id'
]],
$operation_id
,
$message_data
);
}
}
$redis
=
new
RedisCacheService
();
$redis
->
agentCache
(
$id
);
return
;
return
;
}
}
...
...
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