request->get('mobile'); $this->validateCheck('sms\VerificationCodeValidate',['mobile' => $mobile]); $user_id = $this->request->user_id ?? 0; $result = VerificationCodeServer::getCode($mobile, $user_id); if($result) { return json_success([], '发送成功'); } } }