captchaService = $captchaService; } /** * 获取登录图片验证码(免登录接口) * * 返回 { key, image },image 为 data:image/png;base64,... 可直接用于 img src * * @return mixed */ public function getCaptcha() { return $this->success($this->captchaService->generate()); } }