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
38095031
Commit
38095031
authored
Mar 12, 2019
by
庄钊鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手机验证代码
parent
7c985c67
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
32 deletions
+32
-32
workspace.xml
.idea/workspace.xml
+26
-27
User.php
app/api/controller/v1/app/User.php
+6
-5
No files found.
.idea/workspace.xml
View file @
38095031
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"91f66d3c-41ac-41b6-86c7-896c6cbc8e56"
name=
"Default Changelist"
comment=
""
>
<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"
/>
</list>
<list
default=
"true"
id=
"91f66d3c-41ac-41b6-86c7-896c6cbc8e56"
name=
"Default Changelist"
comment=
""
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -15,11 +13,11 @@
</component>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<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/User.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<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
"
/>
<state
relative-caret-position=
"
-357
"
>
<caret
line=
"1
77"
column=
"47"
lean-forward=
"true"
selection-start-line=
"177"
selection-start-column=
"47"
selection-end-line=
"177"
selection-end-column=
"47
"
/>
<folding>
<element
signature=
"e#45#72#0#PHP"
expanded=
"true"
/>
</folding>
...
...
@@ -69,11 +67,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/app/api/model/Token.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
508
"
>
<caret
line=
"
80"
column=
"23"
selection-start-line=
"80"
selection-start-column=
"8"
selection-end-line=
"80"
selection-end-column=
"23
"
/>
<state
relative-caret-position=
"
890
"
>
<caret
line=
"
77"
column=
"51"
lean-forward=
"true"
selection-start-line=
"77"
selection-start-column=
"51"
selection-end-line=
"77"
selection-end-column=
"51
"
/>
<folding>
<element
signature=
"e#33#49#0#PHP"
expanded=
"true"
/>
</folding>
...
...
@@ -111,8 +109,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<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
"
/>
<state
relative-caret-position=
"
1179
"
>
<caret
line=
"
94"
column=
"42"
lean-forward=
"true"
selection-start-line=
"94"
selection-start-column=
"42"
selection-end-line=
"94"
selection-end-column=
"42
"
/>
<folding>
<element
signature=
"e#132#158#0#PHP"
expanded=
"true"
/>
</folding>
...
...
@@ -287,12 +285,12 @@
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1552287639374
</updated>
<workItem
from=
"1552287640754"
duration=
"12982000"
/>
<workItem
from=
"1552352825843"
duration=
"10
470
000"
/>
<workItem
from=
"1552352825843"
duration=
"10
794
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"23
452
000"
/>
<option
name=
"totallyTimeSpent"
value=
"23
776
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"0"
width=
"1440"
height=
"900"
extended-state=
"0"
/>
...
...
@@ -427,16 +425,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/api/model/Token.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"508"
>
<caret
line=
"80"
column=
"23"
selection-start-line=
"80"
selection-start-column=
"8"
selection-end-line=
"80"
selection-end-column=
"23"
/>
<folding>
<element
signature=
"e#33#49#0#PHP"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/api/controller/Send.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"677"
>
...
...
@@ -466,8 +454,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<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
"
/>
<state
relative-caret-position=
"
1179
"
>
<caret
line=
"
94"
column=
"42"
lean-forward=
"true"
selection-start-line=
"94"
selection-start-column=
"42"
selection-end-line=
"94"
selection-end-column=
"42
"
/>
<folding>
<element
signature=
"e#132#158#0#PHP"
expanded=
"true"
/>
</folding>
...
...
@@ -476,13 +464,23 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/api/controller/v1/app/User.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<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
"
/>
<state
relative-caret-position=
"
-357
"
>
<caret
line=
"1
77"
column=
"47"
lean-forward=
"true"
selection-start-line=
"177"
selection-start-column=
"47"
selection-end-line=
"177"
selection-end-column=
"47
"
/>
<folding>
<element
signature=
"e#45#72#0#PHP"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/app/api/model/Token.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"890"
>
<caret
line=
"77"
column=
"51"
lean-forward=
"true"
selection-start-line=
"77"
selection-start-column=
"51"
selection-end-line=
"77"
selection-end-column=
"51"
/>
<folding>
<element
signature=
"e#33#49#0#PHP"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
app/api/controller/v1/app/User.php
View file @
38095031
...
...
@@ -164,11 +164,12 @@ 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
,
[],
[],
""
,
[],
"该手机号已注册"
);
}
$this
->
returnmsg
(
200
,[],[],
"sendCode"
,
"sendCode success"
,
'手机号码验证成功'
);
// $bool = UserLogic::checkUser($request['mobile']);
// if(!empty($bool)){
// $this->returnmsg(403, [], [],"", [], "该手机号已注册");
// }
$success
[
'success'
][
'message'
]
=
'手机号码验证成功'
;
$this
->
render
(
200
,
$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