Commit 38095031 by 庄钊鑫

手机验证代码

parent 7c985c67
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="91f66d3c-41ac-41b6-86c7-896c6cbc8e56" name="Default Changelist" comment=""> <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>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -15,11 +13,11 @@ ...@@ -15,11 +13,11 @@
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/User.php"> <entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/User.php">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375"> <state relative-caret-position="-357">
<caret line="167" column="26" lean-forward="true" selection-start-line="167" selection-start-column="26" selection-end-line="167" selection-end-column="26" /> <caret line="177" column="47" lean-forward="true" selection-start-line="177" selection-start-column="47" selection-end-line="177" selection-end-column="47" />
<folding> <folding>
<element signature="e#45#72#0#PHP" expanded="true" /> <element signature="e#45#72#0#PHP" expanded="true" />
</folding> </folding>
...@@ -69,11 +67,11 @@ ...@@ -69,11 +67,11 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/app/api/model/Token.php"> <entry file="file://$PROJECT_DIR$/app/api/model/Token.php">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="508"> <state relative-caret-position="890">
<caret line="80" column="23" selection-start-line="80" selection-start-column="8" selection-end-line="80" selection-end-column="23" /> <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> <folding>
<element signature="e#33#49#0#PHP" expanded="true" /> <element signature="e#33#49#0#PHP" expanded="true" />
</folding> </folding>
...@@ -111,8 +109,8 @@ ...@@ -111,8 +109,8 @@
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php"> <entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="773"> <state relative-caret-position="1179">
<caret line="101" column="15" selection-start-line="101" selection-start-column="15" selection-end-line="101" selection-end-column="15" /> <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> <folding>
<element signature="e#132#158#0#PHP" expanded="true" /> <element signature="e#132#158#0#PHP" expanded="true" />
</folding> </folding>
...@@ -287,12 +285,12 @@ ...@@ -287,12 +285,12 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1552287639374</updated> <updated>1552287639374</updated>
<workItem from="1552287640754" duration="12982000" /> <workItem from="1552287640754" duration="12982000" />
<workItem from="1552352825843" duration="10470000" /> <workItem from="1552352825843" duration="10794000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="23452000" /> <option name="totallyTimeSpent" value="23776000" />
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="0" y="0" width="1440" height="900" extended-state="0" /> <frame x="0" y="0" width="1440" height="900" extended-state="0" />
...@@ -427,16 +425,6 @@ ...@@ -427,16 +425,6 @@
</state> </state>
</provider> </provider>
</entry> </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"> <entry file="file://$PROJECT_DIR$/app/api/controller/Send.php">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="677"> <state relative-caret-position="677">
...@@ -466,8 +454,8 @@ ...@@ -466,8 +454,8 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php"> <entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/Send.php">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="773"> <state relative-caret-position="1179">
<caret line="101" column="15" selection-start-line="101" selection-start-column="15" selection-end-line="101" selection-end-column="15" /> <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> <folding>
<element signature="e#132#158#0#PHP" expanded="true" /> <element signature="e#132#158#0#PHP" expanded="true" />
</folding> </folding>
...@@ -476,13 +464,23 @@ ...@@ -476,13 +464,23 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/User.php"> <entry file="file://$PROJECT_DIR$/app/api/controller/v1/app/User.php">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375"> <state relative-caret-position="-357">
<caret line="167" column="26" lean-forward="true" selection-start-line="167" selection-start-column="26" selection-end-line="167" selection-end-column="26" /> <caret line="177" column="47" lean-forward="true" selection-start-line="177" selection-start-column="47" selection-end-line="177" selection-end-column="47" />
<folding> <folding>
<element signature="e#45#72#0#PHP" expanded="true" /> <element signature="e#45#72#0#PHP" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </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> </component>
</project> </project>
\ No newline at end of file
...@@ -164,11 +164,12 @@ class User extends Base ...@@ -164,11 +164,12 @@ class User extends Base
{ {
$request = $this->selectParam(['mobile','sms_type' => 'bind']); $request = $this->selectParam(['mobile','sms_type' => 'bind']);
$this->check($request, 'Base.sendSms'); $this->check($request, 'Base.sendSms');
$bool = UserLogic::checkUser($request['mobile']); // $bool = UserLogic::checkUser($request['mobile']);
if(!empty($bool)){ // if(!empty($bool)){
$this->returnmsg(403, [], [],"", [], "该手机号已注册"); // $this->returnmsg(403, [], [],"", [], "该手机号已注册");
} // }
$this->returnmsg(200,[],[],"sendCode","sendCode success",'手机号码验证成功'); $success['success']['message'] = '手机号码验证成功';
$this->render(200,$success);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment