|
@@ -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(__('手机号不正确'));
|
|
|
}
|