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
f2602ed3
Commit
f2602ed3
authored
Jul 11, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
aba210e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
UserService.php
application/index/service/UserService.php
+11
-6
No files found.
application/index/service/UserService.php
View file @
f2602ed3
...
...
@@ -117,14 +117,19 @@ class UserService
$redis_service
->
userCache
(
$id
);
}
$this
->
setUserSites
(
$id
,
$data
[
'site_id'
]);
//设置站点
$this
->
setUserSites
(
$id
,
$data
[
'site_id'
]);
//设置站点
//操作完成之后判断下是什么动作
if
(
!
empty
(
$data
[
'agents_id'
])
&&
(
$data
[
'agents_id'
]
!=
$agent_id_old
))
{
$s_user_agent
->
changeUserAgent
(
$data
[
'agents_id'
],
$id
,
$site_id
);
//记录修改客方
$this
->
recordGuest
(
$data
[
'agents_id'
],
$agent_id_old
,
$id
,
$user_name
,
$type
);
//设置客方
$user_agent_res
=
$s_user_agent
->
findUserAgent
(
$site_id
,
0
,
$id
);
if
(
!
$user_agent_res
)
{
$s_user_agent
->
addUserAgent
(
$data
[
'agents_id'
],
$id
,
$site_id
);
}
else
{
if
(
!
empty
(
$data
[
'agents_id'
])
&&
(
$data
[
'agents_id'
]
!=
$agent_id_old
))
{
$s_user_agent
->
changeUserAgent
(
$data
[
'agents_id'
],
$id
,
$site_id
);
//记录修改客方
$this
->
recordGuest
(
$data
[
'agents_id'
],
$agent_id_old
,
$id
,
$user_name
,
$type
);
}
}
//记录邀请人 修改记录
...
...
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