Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
personal
Overview
Overview
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
庄钊鑫
personal
Commits
7c985c67
Commit
7c985c67
authored
Mar 12, 2019
by
庄钊鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证手机号返回格式
parent
45fa38dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
30 deletions
+21
-30
workspace.xml
.idea/workspace.xml
+16
-24
User.php
app/api/controller/v1/app/User.php
+5
-6
No files found.
.idea/workspace.xml
View file @
7c985c67
...
...
@@ -2,15 +2,7 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"91f66d3c-41ac-41b6-86c7-896c6cbc8e56"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/api/controller/Api.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/api/controller/Api.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/api/controller/Send.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/api/controller/Send.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/api/controller/v1/app/Send.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/api/controller/v1/app/Send.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/api/controller/v1/app/User.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/api/controller/v1/app/User.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/api/model/Token.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/api/model/Token.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/api/model/User.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/api/model/User.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/common/validate/Base.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/common/validate/Base.php"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/runtime/log/201903/12.log"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/runtime/log/201903/12.log"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -23,11 +15,11 @@
</component>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/app/api/controller/v1/app/User.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
966
"
>
<caret
line=
"
221"
column=
"46"
selection-start-line=
"221"
selection-start-column=
"46"
selection-end-line=
"221"
selection-end-column=
"4
6"
/>
<state
relative-caret-position=
"
375
"
>
<caret
line=
"
167"
column=
"26"
lean-forward=
"true"
selection-start-line=
"167"
selection-start-column=
"26"
selection-end-line=
"167"
selection-end-column=
"2
6"
/>
<folding>
<element
signature=
"e#45#72#0#PHP"
expanded=
"true"
/>
</folding>
...
...
@@ -116,10 +108,10 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
574
"
>
<state
relative-caret-position=
"
773
"
>
<caret
line=
"101"
column=
"15"
selection-start-line=
"101"
selection-start-column=
"15"
selection-end-line=
"101"
selection-end-column=
"15"
/>
<folding>
<element
signature=
"e#132#158#0#PHP"
expanded=
"true"
/>
...
...
@@ -161,8 +153,8 @@
<option
value=
"$PROJECT_DIR$/app/api/controller/Send.php"
/>
<option
value=
"$PROJECT_DIR$/app/api/controller/Api.php"
/>
<option
value=
"$PROJECT_DIR$/app/api/model/User.php"
/>
<option
value=
"$PROJECT_DIR$/app/api/controller/v1/app/User.php"
/>
<option
value=
"$PROJECT_DIR$/app/api/controller/v1/app/Send.php"
/>
<option
value=
"$PROJECT_DIR$/app/api/controller/v1/app/User.php"
/>
</list>
</option>
</component>
...
...
@@ -295,12 +287,12 @@
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1552287639374
</updated>
<workItem
from=
"1552287640754"
duration=
"12982000"
/>
<workItem
from=
"1552352825843"
duration=
"10
146
000"
/>
<workItem
from=
"1552352825843"
duration=
"10
470
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"23
128
000"
/>
<option
name=
"totallyTimeSpent"
value=
"23
452
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"0"
width=
"1440"
height=
"900"
extended-state=
"0"
/>
...
...
@@ -472,22 +464,22 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/api/controller/v1/app/
User
.php"
>
<entry
file=
"file://$PROJECT_DIR$/app/api/controller/v1/app/
Send
.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
966
"
>
<caret
line=
"
221"
column=
"46"
selection-start-line=
"221"
selection-start-column=
"46"
selection-end-line=
"221"
selection-end-column=
"46
"
/>
<state
relative-caret-position=
"
773
"
>
<caret
line=
"
101"
column=
"15"
selection-start-line=
"101"
selection-start-column=
"15"
selection-end-line=
"101"
selection-end-column=
"15
"
/>
<folding>
<element
signature=
"e#
45#72
#0#PHP"
expanded=
"true"
/>
<element
signature=
"e#
132#158
#0#PHP"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/api/controller/v1/app/
Send
.php"
>
<entry
file=
"file://$PROJECT_DIR$/app/api/controller/v1/app/
User
.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
574
"
>
<caret
line=
"1
01"
column=
"15"
selection-start-line=
"101"
selection-start-column=
"15"
selection-end-line=
"101"
selection-end-column=
"15
"
/>
<state
relative-caret-position=
"
375
"
>
<caret
line=
"1
67"
column=
"26"
lean-forward=
"true"
selection-start-line=
"167"
selection-start-column=
"26"
selection-end-line=
"167"
selection-end-column=
"26
"
/>
<folding>
<element
signature=
"e#
132#158
#0#PHP"
expanded=
"true"
/>
<element
signature=
"e#
45#72
#0#PHP"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
app/api/controller/v1/app/User.php
View file @
7c985c67
...
...
@@ -164,12 +164,11 @@ class User extends Base
{
$request
=
$this
->
selectParam
([
'mobile'
,
'sms_type'
=>
'bind'
]);
$this
->
check
(
$request
,
'Base.sendSms'
);
// $bool = UserLogic::checkUser($request['mobile']);
// if(!empty($bool)){
// $this->returnmsg(403, [], [],"", [], "该手机号已注册");
// }
$success
[
'success'
][
'message'
]
=
'手机号码验证成功'
;
$this
->
render
(
200
,
$success
);
$bool
=
UserLogic
::
checkUser
(
$request
[
'mobile'
]);
if
(
!
empty
(
$bool
)){
$this
->
returnmsg
(
403
,
[],
[],
""
,
[],
"该手机号已注册"
);
}
$this
->
returnmsg
(
200
,[],[],
"sendCode"
,
"sendCode success"
,
'手机号码验证成功'
);
}
/**
...
...
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