feat: place Order
This commit is contained in:
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Api\Order;
|
||||
|
||||
use App\Cache\Redis\Common\ConfigCache;
|
||||
use App\Cache\Redis\RedisCache;
|
||||
use App\Service\Api\BaseService;
|
||||
use App\Service\ServiceTrait\Api\OrderTrait;
|
||||
@@ -43,6 +44,12 @@ abstract class BaseOrderService extends BaseService
|
||||
#[Inject]
|
||||
protected RedisCache $redis;
|
||||
|
||||
/**
|
||||
* @var ConfigCache
|
||||
*/
|
||||
#[Inject]
|
||||
protected ConfigCache $configCache;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
@@ -86,6 +93,11 @@ abstract class BaseOrderService extends BaseService
|
||||
*/
|
||||
protected int $orderId;
|
||||
|
||||
/**
|
||||
* @var int 自动选择优惠券 (确认订单需要,下单不需要,用子类重置该值)
|
||||
*/
|
||||
protected int $isAutoSelectCoupon = 2;
|
||||
|
||||
/**
|
||||
* 构造方法
|
||||
* @throws ContainerExceptionInterface
|
||||
@@ -147,6 +159,8 @@ abstract class BaseOrderService extends BaseService
|
||||
/**
|
||||
* 计算
|
||||
* @return void
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function compute(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user