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
c404acb1
Commit
c404acb1
authored
Jun 26, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
1d841174
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Register.php
application/api/controller/Register.php
+3
-0
RegisterValidate.php
application/api/validate/RegisterValidate.php
+2
-1
No files found.
application/api/controller/Register.php
View file @
c404acb1
...
@@ -132,6 +132,9 @@ class Register extends Basic
...
@@ -132,6 +132,9 @@ class Register extends Basic
"wx_union_id" => "asdfasfasdf",
"wx_union_id" => "asdfasfasdf",
"phone" => 25983,
"phone" => 25983,
);*/
);*/
if
(
!
isset
(
$params
[
"phone"
]))
{
return
$this
->
response
(
"101"
,
"手机号为必填字段"
);
}
$checkResult
=
$this
->
validate
(
$params
,
"RegisterValidate.bind"
);
$checkResult
=
$this
->
validate
(
$params
,
"RegisterValidate.bind"
);
if
(
true
!==
$checkResult
)
{
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
return
$this
->
response
(
"101"
,
$checkResult
);
...
...
application/api/validate/RegisterValidate.php
View file @
c404acb1
...
@@ -39,6 +39,6 @@ class RegisterValidate extends Validate
...
@@ -39,6 +39,6 @@ class RegisterValidate extends Validate
'verify'
=>
[
'phone'
,
'device_id'
],
'verify'
=>
[
'phone'
,
'device_id'
],
'register'
=>
[
'phone'
,
'device_id'
,
'code'
],
'register'
=>
[
'phone'
,
'device_id'
,
'code'
],
'removeBind'
=>
[
'user_id'
,
'buyer_id'
],
'removeBind'
=>
[
'user_id'
,
'buyer_id'
],
'bind'
=>
[
'
user_id'
,
'wx_union_id
'
],
'bind'
=>
[
'
wx_union_id'
,
'phone
'
],
];
];
}
}
\ No newline at end of file
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