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
f933ea18
Commit
f933ea18
authored
Mar 21, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解绑
parent
6c8f53d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
14 deletions
+23
-14
UserService.php
application/index/service/UserService.php
+23
-14
No files found.
application/index/service/UserService.php
View file @
f933ea18
...
...
@@ -617,23 +617,32 @@ class UserService
return
2
;
//无解除关联权限权限
}
// 客户bind_id不等于0才能解绑并记录日志
$user_info
=
$this
->
user
->
getUserById
(
$field
=
'bind_id'
,
$user_id
);
if
(
$user_info
[
'bind_id'
]
==
0
){
$band_count
=
$this
->
user
->
getUserCountByBandId
(
$field
=
'id'
,
$user_id
);
if
(
$band_count
==
1
){
$params_
[
'bind_id'
]
=
0
;
$this
->
user
->
updateUsers
(
$now_user_id
,
$params_
);
return
0
;
}
return
3
;
$params_
[
'bind_id'
]
=
0
;
$nuser_info
=
$this
->
user
->
getUserById
(
$field
=
'bind_id'
,
$now_user_id
);
if
(
$nuser_info
[
'bind_id'
]
==
0
){
$this
->
user
->
updateUsers
(
$user_id
,
$params_
);
$this
->
userDoLog
(
$user_id
,
$nuser_info
[
'bind_id'
],
$agent_id
);
}
else
{
// 解绑操作记录
$this
->
userDoLog
(
$user_id
,
$
user_info
[
'bind_id'
]
,
$agent_id
);
$this
->
user
->
updateUsers
(
$now_user_id
,
$params_
);
$this
->
userDoLog
(
$user_id
,
$
now_user_id
,
$agent_id
);
}
$params_
[
'bind_id'
]
=
0
;
$this
->
user
->
updateUsers
(
$user_id
,
$params_
);
// 客户bind_id不等于0才能解绑并记录日志
// $user_info = $this->user->getUserById($field = 'bind_id', $user_id);
// if($user_info['bind_id'] == 0){
// $band_count = $this->user->getUserCountByBandId($field = 'id', $user_id);
// if($band_count == 1){
// $params_['bind_id'] = 0;
// $this->user->updateUsers($now_user_id,$params_);
// return 0;
// }
// return 3;
// }else{
// // 解绑操作记录
// $this->userDoLog($user_id,$user_info['bind_id'],$agent_id);
// }
// $this->userDoLog($user_id,$user_info['bind_id'],$agent_id);
return
0
;
}
...
...
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