Compare commits

...

2 Commits

Author SHA1 Message Date
weiz c132164e06 Merge pull request '图片上传' (#11) from zhangwei into dev
Reviewed-on: #11
2023-11-25 09:13:20 +08:00
weiz 67d830c567 图片上传 2023-11-25 09:12:25 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class UploadController extends BaseApiController
{ {
try { try {
$result = UploadService::image(0, $this->userId,FileEnum::SOURCE_USER); $result = UploadService::image(0, $this->userId,FileEnum::SOURCE_USER);
return $this->success('上传成功', $result); return $this->success('上传成功', ['url'=>env('project.project_url').'/'.$result['url']]);
} catch (Exception $e) { } catch (Exception $e) {
return $this->fail($e->getMessage()); return $this->fail($e->getMessage());
} }