Code format

This commit is contained in:
Edward Yang 2023-05-31 18:06:14 +08:00
parent 8b711fa653
commit fc609a9b67
6 changed files with 42 additions and 40 deletions

View File

@ -14,6 +14,7 @@ namespace Beike\Admin\Services;
class FileManagerService class FileManagerService
{ {
protected $fileBasePath = ''; protected $fileBasePath = '';
protected $basePath = ''; protected $basePath = '';
public function __construct() public function __construct()
@ -187,6 +188,7 @@ class FileManagerService
public function uploadFile($file, $savePath, $originName) public function uploadFile($file, $savePath, $originName)
{ {
$savePath = $this->basePath . $savePath; $savePath = $this->basePath . $savePath;
return $file->storeAs($savePath, $originName, 'catalog'); return $file->storeAs($savePath, $originName, 'catalog');
} }

View File

@ -13,5 +13,4 @@ namespace Beike\Exceptions;
class InvalidException extends \Exception class InvalidException extends \Exception
{ {
} }

View File

@ -267,6 +267,7 @@ class OrderRepo
OrderTotalRepo::createTotals($order, $totals); OrderTotalRepo::createTotals($order, $totals);
hook_filter('repository.order.create.after', ['order' => $order, 'data' => $data]); hook_filter('repository.order.create.after', ['order' => $order, 'data' => $data]);
return $order; return $order;
} }