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
ee5618a3
Commit
ee5618a3
authored
Jun 22, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
28be6124
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
RegisterService.php
application/api/service/RegisterService.php
+3
-2
No files found.
application/api/service/RegisterService.php
View file @
ee5618a3
...
@@ -40,12 +40,12 @@ class RegisterService
...
@@ -40,12 +40,12 @@ class RegisterService
//todo 1.判断是否有此用户,包涵未激活或者冻结, 2.无此用户则注册,返回AuthToken ,3有则登录返回AuthToken
//todo 1.判断是否有此用户,包涵未激活或者冻结, 2.无此用户则注册,返回AuthToken ,3有则登录返回AuthToken
//判断用户是否注册
//判断用户是否注册
$conditions
[
"user_phone"
]
=
$phone
;
$conditions
[
"user_phone"
]
=
$phone
;
$fields
=
"id,user_nick,user_pic,sex,agent_id,referrer_id,referrer_source,user_phone,status"
;
$fields
=
"id,
buyer_id,
user_nick,user_pic,sex,agent_id,referrer_id,referrer_source,user_phone,status"
;
$user_info
=
$this
->
userModel
->
getUserByWhere
(
$conditions
,
$fields
);
$user_info
=
$this
->
userModel
->
getUserByWhere
(
$conditions
,
$fields
);
$buyer_id
=
$sex
=
$id
=
$status
=
$agent_id
=
0
;
$buyer_id
=
$sex
=
$id
=
$status
=
$agent_id
=
0
;
$buyer_nick
=
$user_nick
=
$other_pic
=
""
;
$buyer_nick
=
$user_nick
=
$other_pic
=
""
;
if
(
count
(
$user_info
)
>
0
)
{
if
(
count
(
$user_info
)
>
0
)
{
switch
((
int
)
$user_info
[
0
][
"status"
])
{
switch
((
int
)
$user_info
[
0
][
"status"
])
{
case
-
1
://
激活
case
-
1
://
激活
...
@@ -64,6 +64,7 @@ class RegisterService
...
@@ -64,6 +64,7 @@ class RegisterService
return
[
"code"
=>
101
,
"data"
=>
"该帐号异常"
];
return
[
"code"
=>
101
,
"data"
=>
"该帐号异常"
];
}
}
$user_nick
=
$user_info
[
0
][
"user_nick"
];
$user_nick
=
$user_info
[
0
][
"user_nick"
];
$buyer_id
=
$user_info
[
0
][
"buyer_id"
];
$sex
=
$user_info
[
0
][
"sex"
];
$sex
=
$user_info
[
0
][
"sex"
];
$agent_id
=
$user_info
[
0
][
"agent_id"
];
$agent_id
=
$user_info
[
0
][
"agent_id"
];
$id
=
$user_info
[
0
][
"id"
];
$id
=
$user_info
[
0
][
"id"
];
...
...
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