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
e1c75abb
Commit
e1c75abb
authored
Jan 07, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户绑定列表
parent
14fde326
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Member.php
application/index/controller/Member.php
+2
-2
UserLogService.php
application/index/service/UserLogService.php
+4
-0
No files found.
application/index/controller/Member.php
View file @
e1c75abb
...
@@ -539,12 +539,12 @@ class Member extends Basic{
...
@@ -539,12 +539,12 @@ class Member extends Basic{
*/
*/
public
function
addUserBind
()
public
function
addUserBind
()
{
{
if
(
empty
(
$this
->
params
[
'user_id'
]))
{
if
(
empty
(
$this
->
params
[
'user_id'
])
OR
empty
(
$this
->
params
[
'bind_id'
])
)
{
return
$this
->
response
(
101
,
'参数错误'
);
return
$this
->
response
(
101
,
'参数错误'
);
}
}
$s_index_user
=
new
UserService
();
$s_index_user
=
new
UserService
();
//新增
//新增
$add_res
=
$s_index_user
->
addUserBind
(
$this
->
params
[
'user_id'
],
$this
->
userId
);
$add_res
=
$s_index_user
->
addUserBind
(
$this
->
params
[
'user_id'
],
$this
->
params
[
'bind_id'
]
);
switch
(
$add_res
)
{
switch
(
$add_res
)
{
case
1
:
case
1
:
return
$this
->
response
(
"300"
,
"参数不全"
);
return
$this
->
response
(
"300"
,
"参数不全"
);
...
...
application/index/service/UserLogService.php
View file @
e1c75abb
...
@@ -154,6 +154,10 @@ class UserLogService
...
@@ -154,6 +154,10 @@ class UserLogService
//是否可以查看vip客户 0:可查看 1:不可查看
//是否可以查看vip客户 0:可查看 1:不可查看
$data
[
'examine_vip'
]
=
$vip_services
->
vip
(
$agent_id
);
$data
[
'examine_vip'
]
=
$vip_services
->
vip
(
$agent_id
);
//绑定关系(关联客户)
$s_index_user
=
new
UserService
();
$result
[
'user_bind_list'
]
=
$s_index_user
->
userBindInfo
(
$user_id
);
return
[
"code"
=>
200
,
"data"
=>
$data
];
return
[
"code"
=>
200
,
"data"
=>
$data
];
}
}
...
...
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