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
3bb4b663
Commit
3bb4b663
authored
Aug 09, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户编辑
parent
cdbb41df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
Member.php
application/index/controller/Member.php
+13
-12
No files found.
application/index/controller/Member.php
View file @
3bb4b663
...
...
@@ -375,25 +375,26 @@ class Member extends Basic{
$agent_data
=
$agent
->
getAgentInfo
(
'name,phone'
,
$this
->
params
[
'agents_id'
]);
$remark
=
'新增为'
.
$agent_data
[
'name'
]
.
'-'
.
$agent_data
[
'phone'
];
$result
=
$this
->
user
->
edit
(
$this
->
params
,
$this
->
params
[
'id'
],
$this
->
userId
);
//新增或编辑
$this
->
operating_records
(
$this
->
userId
,
$type
=
3
,
$remark
,
$this
->
params
[
'id'
]);
//记录日志
}
else
{
$user_data
=
$this
->
user
->
getUserById
(
'id,agent_id'
,
$this
->
params
[
'id'
]);
if
(
empty
(
$user_data
))
{
return
$this
->
response
(
101
,
'没有用户信息'
);
}
else
{
}
if
(
!
empty
(
$this
->
params
[
'agents_id'
]))
{
//是否修改客方
if
(
$this
->
params
[
'agents_id'
]
!=
$user_data
[
'agent_id'
])
{
$agent
=
new
AAgents
();
$agent_data
=
$agent
->
getAgentInfo
(
'name,phone'
,
$this
->
params
[
'agents_id'
]);
$remark
=
'修改为'
.
$agent_data
[
'name'
]
.
'-'
.
$agent_data
[
'phone'
];
}
else
{
$remark
=
'用户编辑'
;
}
$result
=
$this
->
user
->
edit
(
$this
->
params
,
$this
->
params
[
'id'
],
$this
->
userId
);
//新增或编辑
$this
->
operating_records
(
$this
->
userId
,
$type
=
3
,
$remark
,
$this
->
params
[
'id'
]);
//记录日志
if
(
!
empty
(
$this
->
params
[
'agents_id'
]))
{
//是否修改客方
if
(
$this
->
params
[
'agents_id'
]
!=
$user_data
[
'agent_id'
])
{
$agent
=
new
AAgents
();
$agent_data
=
$agent
->
getAgentInfo
(
'name,phone'
,
$this
->
params
[
'agents_id'
]);
$remark
=
'修改为'
.
$agent_data
[
'name'
]
.
'-'
.
$agent_data
[
'phone'
];
}
else
{
$remark
=
'用户编辑'
;
}
$this
->
operating_records
(
$this
->
userId
,
$type
=
3
,
$remark
,
$this
->
params
[
'id'
]);
//记录日志
}
$result
=
$this
->
user
->
edit
(
$this
->
params
,
$this
->
params
[
'id'
],
$this
->
userId
);
//新增或编辑
}
switch
(
$result
)
{
...
...
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