quguofeng пре 2 година
родитељ
комит
841d35f6c9
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 1 1
      application/admin/controller/Login.php
  2. 2 2
      application/admin/controller/Sms.php

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

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

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

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