feat: place order
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user