feat: place order

This commit is contained in:
2025-01-23 16:56:24 +08:00
parent b2f96de226
commit aadcf6c661
11 changed files with 504 additions and 111 deletions

View File

@@ -10,16 +10,31 @@ declare(strict_types=1);
namespace App\Service\Api\Order;
use App\Service\Api\BaseService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
class PlaceOrderService extends BaseService
class PlaceOrderService extends BaseOrderService
{
/**
* @var int 1=微信支付 2=支付宝支付 3=余额支付
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
private int $type;
public function handle()
{
$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()
{
}