feat : spu

This commit is contained in:
2025-03-25 16:04:12 +08:00
parent bf1d001819
commit 614a77a247
4 changed files with 47 additions and 29 deletions

View File

@@ -11,6 +11,9 @@ declare(strict_types=1);
namespace App\Service\Amqp\Refund;
use App\Constants\Common\OrderCode;
use App\Model\Order;
use App\Model\PayOrder;
use App\Model\RefundOrder;
use App\Service\ServiceTrait\Api\CateringTrait;
use App\Service\ServiceTrait\Api\CouponTrait;
use App\Service\ServiceTrait\Api\OrderTrait;
@@ -41,6 +44,21 @@ class RefundGoodOrderFinishService
*/
public int $orderType;
/**
* @var Order
*/
protected Order $orderInfo;
/**
* @var PayOrder
*/
protected PayOrder $payInfo;
/**
* @var RefundOrder
*/
protected RefundOrder $refundInfo;
/**
* @return void
*/

View File

@@ -26,14 +26,14 @@ use function Hyperf\Config\config;
class WxJsRechargeOrderService extends WxJsRechargeBaseService
{
use CheckOrderCallBackTrait,
GoodOrderTrait,
PayFinishTrait,
RefundOrderTrait,
OrderTrait,
OrderChangeStatusTrait,
CateringTrait,
CouponTrait;
use CheckOrderCallBackTrait;
// GoodOrderTrait,
// PayFinishTrait,
// RefundOrderTrait,
// OrderTrait,
// OrderChangeStatusTrait,
// CateringTrait,
// CouponTrait;
/**
*
@@ -41,36 +41,32 @@ class WxJsRechargeOrderService extends WxJsRechargeBaseService
const int OrderType = OrderCode::ORDER_TYPE_GOOD;
const int PayType = PayCode::WECHAT_PAY;
/**
* 订单 id
* @var int
*/
protected int $orderId;
// /**
// * 订单 id
// * @var int
// */
// protected int $orderId;
/**
* @var string
*/
protected string $orderNo;
/**
* @var mixed
*/
protected mixed $orderInfo;
// /**
// * @var mixed
// */
// protected mixed $orderInfo;
/**
* @var mixed
*/
protected mixed $payInfo;
// /**
// * @var mixed
// */
// protected mixed $payInfo;
/**
* @var mixed
*/
protected mixed $refundInfo;
// /**
// * @var mixed
// */
// protected mixed $refundInfo;
/**
* @var bool 是否加入配餐数据
*/
protected bool $isCatering = true;
/**
* @var Producer