Code format
This commit is contained in:
parent
8b711fa653
commit
fc609a9b67
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,5 +13,4 @@ namespace Beike\Exceptions;
|
||||||
|
|
||||||
class InvalidException extends \Exception
|
class InvalidException extends \Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue