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
ba53ea5f
Commit
ba53ea5f
authored
Jan 07, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增关联客户
parent
045a5371
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
Member.php
application/index/controller/Member.php
+38
-0
route.php
application/route.php
+2
-0
No files found.
application/index/controller/Member.php
View file @
ba53ea5f
...
@@ -533,6 +533,44 @@ class Member extends Basic{
...
@@ -533,6 +533,44 @@ class Member extends Basic{
}
}
/**
* 新增关联客户
* @return \think\Response
*/
public
function
addUserBind
()
{
if
(
empty
(
$this
->
params
[
'user_id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$s_index_user
=
new
UserService
();
//新增
$add_res
=
$s_index_user
->
addUserBind
(
$this
->
params
[
'user_id'
],
$this
->
userId
);
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"
,
"绑定失败"
);
}
}
public
function
ceshi
()
public
function
ceshi
()
{
{
$s
=
new
UserService
();
$s
=
new
UserService
();
...
...
application/route.php
View file @
ba53ea5f
...
@@ -403,6 +403,8 @@ Route::group('index', [
...
@@ -403,6 +403,8 @@ Route::group('index', [
'addDaily'
=>
[
'index/DailyPaper/addDaily'
,
[
'method'
=>
'get|post'
]],
'addDaily'
=>
[
'index/DailyPaper/addDaily'
,
[
'method'
=>
'get|post'
]],
'commitCheck'
=>
[
'index/DailyPaper/commitCheck'
,
[
'method'
=>
'get|post'
]],
'commitCheck'
=>
[
'index/DailyPaper/commitCheck'
,
[
'method'
=>
'get|post'
]],
'getPayLogImg'
=>
[
'index/DailyPaper/getPayLogImg'
,
[
'method'
=>
'get|post'
]],
'getPayLogImg'
=>
[
'index/DailyPaper/getPayLogImg'
,
[
'method'
=>
'get|post'
]],
'addUserBind'
=>
[
'index/member/addUserBind'
,
[
'method'
=>
'get|post'
]],
]);
]);
...
...
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