Code format
This commit is contained in:
parent
e1e3ee9568
commit
5c4ae14dbc
|
|
@ -19,6 +19,7 @@ class Weight
|
|||
'oz' => 0.035,
|
||||
'lb' => 0.0022046,
|
||||
];
|
||||
|
||||
public const DEFAULT_CLASS = 'g';
|
||||
|
||||
public function __construct()
|
||||
|
|
@ -38,6 +39,7 @@ class Weight
|
|||
if (empty($weight)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return $weight * self::WEIGHT_CLASS[$to] / self::WEIGHT_CLASS[$from];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
namespace Beike\Shop\Http\Controllers;
|
||||
|
||||
use Beike\Repositories\OrderRepo;
|
||||
use Beike\Shop\Services\CheckoutService;
|
||||
use Illuminate\Http\Request;
|
||||
use Beike\Repositories\OrderRepo;
|
||||
|
||||
class CheckoutController extends Controller
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue