41 lines
816 B
PHP
41 lines
816 B
PHP
<?php
|
|
/**
|
|
* This service file is part of item.
|
|
*
|
|
* @author ctexthuang
|
|
* @contact ctexthuang@qq.com
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Service\Api\Order;
|
|
|
|
use Psr\Container\ContainerExceptionInterface;
|
|
use Psr\Container\NotFoundExceptionInterface;
|
|
|
|
class PlaceOrderService extends BaseOrderService
|
|
{
|
|
/**
|
|
* @return array
|
|
* @throws ContainerExceptionInterface
|
|
* @throws NotFoundExceptionInterface
|
|
*/
|
|
public function handle(): array
|
|
{
|
|
$this->siteId = (int)$this->request->input('site_id');
|
|
$this->couponId = (int)$this->request->input('coupon_id',0);
|
|
|
|
$this->check();
|
|
|
|
$this->compute();
|
|
|
|
$this->placeOrder();
|
|
|
|
return $this->return->success('success',$this->orderRes);
|
|
}
|
|
|
|
private function placeOrder()
|
|
{
|
|
|
|
}
|
|
} |