songxingwei 2 years ago
parent
commit
3cafb0e52b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/data/controller/api/Login.php

+ 2 - 2
app/data/controller/api/Login.php

@@ -104,7 +104,7 @@ class Login extends Auth
     /**
      * @Title("发送短信验证码")
      * @Param("phone",desc="手机号")
-     * @Param("type",desc="1登陆2注册3找回密码4发布应聘")
+     * @Param("type",desc="1登陆2注册3找回密码4发布应聘5商家登录6商家找回密码")
      */
     public function sendsms()
     {
@@ -112,7 +112,7 @@ class Login extends Auth
             'phone.mobile'   => '手机号格式错误!',
             'phone.require'  => '手机号不能为空!',
             'type.require'  => '类型不能为空!',
-            'type.in:1,2,3,4'  => '类型有误!',
+            'type.in:1,2,3,4,5,6'  => '类型有误!',
         ]);
         $needLogin=[];
         if(in_array($data['type'],$needLogin) && !$this->uuid){