isLocal()) { $captchaService->validatePhrase( (string) $request->input('captcha_key'), (string) $request->input('captcha_phrase') ); } try { $smsCodeService->send( $request->input('phone'), $request->input('type'), app()->isProduction() ? mt_rand(100000, 999999) : '666666', ); } catch (BizException $e) { throw $e; } catch (Throwable $e) { report($e); } return response()->noContent(); } }