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
1d1ca96a
Commit
1d1ca96a
authored
Jun 28, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
567a457b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
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
+2
-2
No files found.
application/api_broker/controller/User.php
View file @
1d1ca96a
...
@@ -844,7 +844,7 @@ class User extends Basic
...
@@ -844,7 +844,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 @
1d1ca96a
...
@@ -615,7 +615,7 @@ class Member extends Basic{
...
@@ -615,7 +615,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 @
1d1ca96a
...
@@ -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
'参数不全'
;
}
}
...
@@ -752,7 +752,7 @@ class UserService
...
@@ -752,7 +752,7 @@ class UserService
$params_
[
'bind_id'
]
=
$params_bind_id
;
$params_
[
'bind_id'
]
=
$params_bind_id
;
$res
=
$this
->
user
->
updateUsers
(
$params_user_id
,
$params_
);
$res
=
$this
->
user
->
updateUsers
(
$params_user_id
,
$params_
);
if
(
$res
==
1
){
if
(
$res
==
1
){
$this
->
userDoLog
(
$
user
_id
,
$params_user_id
,
$params_bind_id
,
1
);
$this
->
userDoLog
(
$
agent
_id
,
$params_user_id
,
$params_bind_id
,
1
);
$redis_service
=
new
RedisCacheService
();
$redis_service
=
new
RedisCacheService
();
$redis_service
->
userCache
(
$user_id
);
$redis_service
->
userCache
(
$user_id
);
return
true
;
return
true
;
...
...
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