Commit 7c985c67 by 庄钊鑫

验证手机号返回格式

parent 45fa38dd
...@@ -2,15 +2,7 @@ ...@@ -2,15 +2,7 @@
<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$/.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/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> </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" />
...@@ -23,11 +15,11 @@ ...@@ -23,11 +15,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="false"> <file pinned="false" current-in-tab="true">
<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="966"> <state relative-caret-position="375">
<caret line="221" column="46" selection-start-line="221" selection-start-column="46" selection-end-line="221" selection-end-column="46" /> <caret line="167" column="26" lean-forward="true" selection-start-line="167" selection-start-column="26" selection-end-line="167" selection-end-column="26" />
<folding> <folding>
<element signature="e#45#72#0#PHP" expanded="true" /> <element signature="e#45#72#0#PHP" expanded="true" />
</folding> </folding>
...@@ -116,10 +108,10 @@ ...@@ -116,10 +108,10 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="true"> <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="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" /> <caret line="101" column="15" selection-start-line="101" selection-start-column="15" selection-end-line="101" selection-end-column="15" />
<folding> <folding>
<element signature="e#132#158#0#PHP" expanded="true" /> <element signature="e#132#158#0#PHP" expanded="true" />
...@@ -161,8 +153,8 @@ ...@@ -161,8 +153,8 @@
<option value="$PROJECT_DIR$/app/api/controller/Send.php" /> <option value="$PROJECT_DIR$/app/api/controller/Send.php" />
<option value="$PROJECT_DIR$/app/api/controller/Api.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/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/Send.php" />
<option value="$PROJECT_DIR$/app/api/controller/v1/app/User.php" />
</list> </list>
</option> </option>
</component> </component>
...@@ -295,12 +287,12 @@ ...@@ -295,12 +287,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="10146000" /> <workItem from="1552352825843" duration="10470000" />
</task> </task>
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="23128000" /> <option name="totallyTimeSpent" value="23452000" />
</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" />
...@@ -472,22 +464,22 @@ ...@@ -472,22 +464,22 @@
</state> </state>
</provider> </provider>
</entry> </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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="966"> <state relative-caret-position="773">
<caret line="221" column="46" selection-start-line="221" selection-start-column="46" selection-end-line="221" selection-end-column="46" /> <caret line="101" column="15" selection-start-line="101" selection-start-column="15" selection-end-line="101" selection-end-column="15" />
<folding> <folding>
<element signature="e#45#72#0#PHP" expanded="true" /> <element signature="e#132#158#0#PHP" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </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"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="574"> <state relative-caret-position="375">
<caret line="101" column="15" selection-start-line="101" selection-start-column="15" selection-end-line="101" selection-end-column="15" /> <caret line="167" column="26" lean-forward="true" selection-start-line="167" selection-start-column="26" selection-end-line="167" selection-end-column="26" />
<folding> <folding>
<element signature="e#132#158#0#PHP" expanded="true" /> <element signature="e#45#72#0#PHP" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
......
...@@ -164,12 +164,11 @@ class User extends Base ...@@ -164,12 +164,11 @@ 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, [], [],"", [], "该手机号已注册");
// } }
$success['success']['message'] = '手机号码验证成功'; $this->returnmsg(200,[],[],"sendCode","sendCode success",'手机号码验证成功');
$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