Files
hyperf_service/app/Service/Api/Order/ConfirmationOrderService.php
2025-01-23 16:56:24 +08:00

34 lines
745 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 ConfirmationOrderService 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();
return $this->return->success('success',$this->orderRes);
}
}