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
31daa520
Commit
31daa520
authored
Jun 06, 2019
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0529-v3.3.0' of
https://gitee.com/zwyjjc/tl_estate
into 0529-v3.3.0
parents
f398520f
abfc99f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
UserService.php
application/index/service/UserService.php
+5
-1
No files found.
application/index/service/UserService.php
View file @
31daa520
...
@@ -734,6 +734,7 @@ class UserService
...
@@ -734,6 +734,7 @@ class UserService
$params_
[
'bind_id'
]
=
$params_bind_id
;
$params_
[
'bind_id'
]
=
$params_bind_id
;
$res
=
$this
->
user
->
updateUsers
(
$params_user_id
,
$params_
);
$res
=
$this
->
user
->
updateUsers
(
$params_user_id
,
$params_
);
if
(
$res
==
1
){
if
(
$res
==
1
){
$this
->
userDoLog
(
$user_id
,
$params_user_id
,
$params_bind_id
,
1
);
$redis_service
=
new
RedisCacheService
();
$redis_service
=
new
RedisCacheService
();
$redis_service
->
userCache
(
$user_id
);
$redis_service
->
userCache
(
$user_id
);
return
true
;
return
true
;
...
@@ -818,10 +819,13 @@ class UserService
...
@@ -818,10 +819,13 @@ class UserService
* @param $remove_bind_id
* @param $remove_bind_id
* @param $agent_id
* @param $agent_id
*/
*/
private
function
userDoLog
(
$id
,
$remove_bind_id
,
$agent_id
)
private
function
userDoLog
(
$id
,
$remove_bind_id
,
$agent_id
,
$type
=
0
)
{
{
$records
=
new
GOperatingRecords
();
$records
=
new
GOperatingRecords
();
$remark
=
'与ID: '
.
$remove_bind_id
.
'解除绑定关系'
;
$remark
=
'与ID: '
.
$remove_bind_id
.
'解除绑定关系'
;
if
(
$type
==
1
){
$remark
=
'与ID: '
.
$remove_bind_id
.
'添加绑定'
;
}
$records
->
record
(
$agent_id
,
8
,
$remark
,
''
,
$id
);
$records
->
record
(
$agent_id
,
8
,
$remark
,
''
,
$id
);
}
}
...
...
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