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
43ce044b
Commit
43ce044b
authored
Jun 28, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cbf7f3a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
User.php
application/api_broker/controller/User.php
+1
-1
Member.php
application/index/controller/Member.php
+1
-1
UserService.php
application/index/service/UserService.php
+1
-1
No files found.
application/api_broker/controller/User.php
View file @
43ce044b
...
@@ -856,7 +856,7 @@ class User extends Basic
...
@@ -856,7 +856,7 @@ class User extends Basic
}
}
$s_index_user
=
new
UserService
();
$s_index_user
=
new
UserService
();
//新增
//新增
$add_res
=
$s_index_user
->
addUserBind
(
$this
->
params
[
'user_id'
],
$this
->
params
[
'bind_id'
]);
$add_res
=
$s_index_user
->
addUserBind
(
$this
->
params
[
'user_id'
],
$this
->
params
[
'bind_id'
]
,
$this
->
agentId
);
if
(
$add_res
===
true
)
{
if
(
$add_res
===
true
)
{
return
$this
->
response
(
"200"
,
"绑定成功"
);
return
$this
->
response
(
"200"
,
"绑定成功"
);
}
else
{
}
else
{
...
...
application/index/controller/Member.php
View file @
43ce044b
...
@@ -614,7 +614,7 @@ class Member extends Basic{
...
@@ -614,7 +614,7 @@ class Member extends Basic{
}
}
$s_index_user
=
new
UserService
();
$s_index_user
=
new
UserService
();
//新增
//新增
$add_res
=
$s_index_user
->
addUserBind
(
$this
->
params
[
'user_id'
],
$this
->
params
[
'bind_id'
]);
$add_res
=
$s_index_user
->
addUserBind
(
$this
->
params
[
'user_id'
],
$this
->
params
[
'bind_id'
]
,
$this
->
userId
);
if
(
$add_res
===
true
)
{
if
(
$add_res
===
true
)
{
return
$this
->
response
(
"200"
,
"绑定成功"
);
return
$this
->
response
(
"200"
,
"绑定成功"
);
}
else
{
}
else
{
...
...
application/index/service/UserService.php
View file @
43ce044b
...
@@ -714,7 +714,7 @@ class UserService
...
@@ -714,7 +714,7 @@ class UserService
* @param $bind_id
* @param $bind_id
* @return int
* @return int
*/
*/
public
function
addUserBind
(
$user_id
,
$bind_id
){
public
function
addUserBind
(
$user_id
,
$bind_id
,
$agent_id
){
if
(
!
$user_id
or
!
$bind_id
){
if
(
!
$user_id
or
!
$bind_id
){
return
'参数不全'
;
return
'参数不全'
;
}
}
...
...
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