瀏覽代碼

发短信去掉event

lizhen_gitee 1 年之前
父節點
當前提交
4dd099725e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      application/api/controller/Sms.php

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

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