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
483401a6
Commit
483401a6
authored
Jun 15, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
c87343ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
RegisterService.php
application/api/service/RegisterService.php
+4
-0
Users.php
application/model/Users.php
+6
-0
No files found.
application/api/service/RegisterService.php
View file @
483401a6
...
...
@@ -92,6 +92,10 @@ class RegisterService
if
(
$agent_id
==
0
)
{
$agent_id
=
$this
->
inviteRelationship
(
$referrer_id
,
$referrer_source
);
}
//todo 此处有个关系,解绑上一个的id
$this
->
userModel
->
unbundlingWx
(
$buyer_id
);
$userArr
=
$this
->
userBin
(
$user_nick
,
$sex
,
$id
,
$buyer_id
,
$status
,
$agent_id
,
$phone
,
$referrer_id
,
$referrer_source
,
$last_login_ip
,
$other_pic
);
//保存数据
...
...
application/model/Users.php
View file @
483401a6
...
...
@@ -600,4 +600,10 @@ class Users extends Model
return
0
;
}
}
public
function
unbundlingWx
(
$buyer_id
)
{
return
$this
->
where
(
"buyer_id"
,
$buyer_id
)
->
save
([
"buyer_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