Browse Source

短信验证码

zhangxiaobin 1 year ago
parent
commit
aa5bf79501
1 changed files with 0 additions and 1 deletions
  1. 0 1
      application/api/controller/Sms.php

+ 0 - 1
application/api/controller/Sms.php

@@ -32,7 +32,6 @@ class Sms extends Api
         $mobile = $this->request->post("mobile");
         $mobile = $this->request->post("mobile");
         $event = $this->request->post("event");
         $event = $this->request->post("event");
         $event = $event ? $event : 'register';
         $event = $event ? $event : 'register';
-        $this->success(__('发送成功'));
         if (!$mobile || !\think\Validate::regex($mobile, "^1\d{10}$")) {
         if (!$mobile || !\think\Validate::regex($mobile, "^1\d{10}$")) {
             $this->error(__('手机号不正确'));
             $this->error(__('手机号不正确'));
         }
         }