wupengfei 2 роки тому
батько
коміт
7716e6c273

+ 4 - 2
.idea/workspace.xml

@@ -3,7 +3,8 @@
   <component name="ChangeListManager">
     <list default="true" id="a760c6e5-d38f-48d9-be27-0f7a4f48e29f" 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$/application/user/view/member/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/user/view/member/index.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/admin/controller/Login.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/admin/controller/Login.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/admin/controller/Sms.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/admin/controller/Sms.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -160,7 +161,8 @@
       <workItem from="1663029343085" duration="1877000" />
       <workItem from="1663115673803" duration="1190000" />
       <workItem from="1663216924790" duration="1225000" />
-      <workItem from="1663289319358" duration="2769000" />
+      <workItem from="1663289319358" duration="4076000" />
+      <workItem from="1663374116062" duration="627000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/admin/controller/Login.php

@@ -62,7 +62,7 @@ class Login extends Controller
                 'smscode.require'  => '手机验证码不能为空!',
                 'smscode.min:6'    => '手机验证码长度不能少于6位有效数字!',
             ]);
-            $phone = '15900611139';
+            $phone = '17666660370';
             $ver_code = $data['smscode'];
             //验证短信验证码
             $time = time()-(60*5);

+ 1 - 2
application/admin/controller/Sms.php

@@ -26,13 +26,12 @@ class Sms extends Controller
      */
     public function send()
     {
-        $phone = input("phone",'15900611139');
+        $phone = input("phone",'17666660370');
         $event = input("event",'adminlogin');
         if (!$phone || !Validate::regex($phone, "^1\d{10}$")) {
             $this->error('手机号不正确');
         }
 
-        if ($phone != '15900611139') $this->error('手机号未注册');
         $last = Db::name('store_sms')->where(['mobile' => $phone, 'event' => $event])
             ->order('id', 'DESC')
             ->find();