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
5462e1c6
Commit
5462e1c6
authored
Jun 28, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户关联记录
parent
9a30caa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
16 deletions
+21
-16
UserService.php
application/index/service/UserService.php
+21
-16
No files found.
application/index/service/UserService.php
View file @
5462e1c6
...
...
@@ -752,7 +752,8 @@ class UserService
$params_
[
'bind_id'
]
=
$params_bind_id
;
$res
=
$this
->
user
->
updateUsers
(
$params_user_id
,
$params_
);
if
(
$res
==
1
){
$this
->
userDoLog
(
$agent_id
,
$params_user_id
,
$params_bind_id
,
1
);
$this
->
userDoLog
(
$params_user_id
,
$params_bind_id
,
$agent_id
,
1
);
$this
->
userDoLog
(
$params_bind_id
,
$params_user_id
,
$agent_id
,
1
);
$redis_service
=
new
RedisCacheService
();
$redis_service
->
userCache
(
$user_id
);
return
true
;
...
...
@@ -761,6 +762,22 @@ class UserService
}
}
/**
* 记录操作日志
* @param $user_id
* @param $remove_bind_id
* @param $agent_id
* @param int $type
*/
private
function
userDoLog
(
$user_id
,
$remove_bind_id
,
$agent_id
,
$type
=
0
)
{
$records
=
new
GOperatingRecords
();
$remark
=
'与ID: '
.
$remove_bind_id
.
'解除绑定关系'
;
if
(
$type
==
1
){
$remark
=
'与ID: '
.
$remove_bind_id
.
'添加绑定'
;
}
$records
->
record
(
$agent_id
,
8
,
$remark
,
''
,
$user_id
);
}
/**
* 解除绑定关系
* @param $now_user_id //当前详情页客户
...
...
@@ -805,6 +822,9 @@ class UserService
return
0
;
}
/**
* 客户绑定详情
* @param $user_id
...
...
@@ -831,21 +851,6 @@ class UserService
return
$user_info_list
;
}
/**
* 记录操作日志
* @param $id
* @param $remove_bind_id
* @param $agent_id
*/
private
function
userDoLog
(
$id
,
$remove_bind_id
,
$agent_id
,
$type
=
0
)
{
$records
=
new
GOperatingRecords
();
$remark
=
'与ID: '
.
$remove_bind_id
.
'解除绑定关系'
;
if
(
$type
==
1
){
$remark
=
'与ID: '
.
$remove_bind_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