uploadAvatarImage(); $url = $service->getCiImageUrl($key); if ($url) { return $this->jsonSuccess(['data' => ['src' => $url, 'title' => '']]); } else { return $this->jsonError(['msg' => '上传文件失败']); } } /** * @Post("/im/img", name="desktop.upload.im_img") */ public function uploadImImageAction() { } /** * @Post("/im/file", name="desktop.upload.im_file") */ public function uploadImFileAction() { } }