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
3f576a4d
Commit
3f576a4d
authored
Jan 03, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关联客户
parent
d8b07dd4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
2 deletions
+48
-2
ImageDepot.php
application/index/controller/ImageDepot.php
+1
-1
Member.php
application/index/controller/Member.php
+46
-0
UserService.php
application/index/service/UserService.php
+1
-1
No files found.
application/index/controller/ImageDepot.php
View file @
3f576a4d
...
@@ -179,7 +179,7 @@ class ImageDepot extends Basic
...
@@ -179,7 +179,7 @@ class ImageDepot extends Basic
{
{
$s
=
new
UserService
();
$s
=
new
UserService
();
//查询
//查询
$user_info_list
=
$s
->
userBindInfo
(
3
);
$user_info_list
=
$s
->
userBindInfo
(
1
);
return
$this
->
response
(
"200"
,
"成功"
,
$user_info_list
);
return
$this
->
response
(
"200"
,
"成功"
,
$user_info_list
);
//新增
//新增
...
...
application/index/controller/Member.php
View file @
3f576a4d
...
@@ -531,4 +531,50 @@ class Member extends Basic{
...
@@ -531,4 +531,50 @@ class Member extends Basic{
}
}
return
$this
->
response
(
$code
,
$msg
);
return
$this
->
response
(
$code
,
$msg
);
}
}
public
function
ceshi
()
{
$s
=
new
UserService
();
//查询
$user_info_list
=
$s
->
userBindInfo
(
1
);
return
$this
->
response
(
"200"
,
"成功"
,
$user_info_list
);
//新增
// $user_id = 3;
// $bind_id = 1;
// $add_res = $s->addUserBind($user_id,$bind_id);
// switch ($add_res) {
// case 1 :
// return $this->response("300", "参数不全");
// break;
// case 2 :
// return $this->response("300", "当前客户已经存在绑定关系");
// break;
// case 3 :
// return $this->response("300", "当前客户已经存在绑定关系");
// break;
// case 4 :
// return $this->response("300", "绑定客户关系数超限");
// break;
// case 5 :
// return $this->response("300", "绑定失败");
// break;
// case 0 :
// return $this->response("200", "绑定成功");
// break;
// default :
// return $this->response("300", "绑定失败");
//
// }
//解除
// $rm_res = $s->removeUserBind($user_id);
// if($rm_res == 1){
// return $this->response("200", "解绑成功");
// }else{
// return $this->response("200", "解绑失败");
// }
}
}
}
application/index/service/UserService.php
View file @
3f576a4d
...
@@ -572,7 +572,7 @@ class UserService
...
@@ -572,7 +572,7 @@ class UserService
if
(
!
$user_id
){
if
(
!
$user_id
){
return
''
;
return
''
;
}
}
//
先查当前用户bind_id是否等于0
//
bind_id是否等于0 是否主账号
$user_info
=
$this
->
user
->
getUserById
(
$field
=
'bind_id'
,
$user_id
);
$user_info
=
$this
->
user
->
getUserById
(
$field
=
'bind_id'
,
$user_id
);
$field
=
'user_name,user_phone,bind_id'
;
$field
=
'user_name,user_phone,bind_id'
;
if
(
$user_info
[
'bind_id'
]
==
0
){
if
(
$user_info
[
'bind_id'
]
==
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