Skip to content

Commit

Permalink
fix(核心): 修复 TS+ 本地文件存储失败后抛出异常参数错误
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Nov 23, 2018
1 parent f4523b2 commit f4531c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/FileStorage/Http/Controllers/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function put(Request $request, FactoryContract $cache, string $channel, s

$resource = new Resource($channel, base64_decode($path));
if (! $this->storage->put($resource, $content)) {
throw new HttpException('储存文件失败');
throw new HttpException(500, '储存文件失败');
}

$this->storage->callback($resource);
Expand Down

0 comments on commit f4531c9

Please sign in to comment.