|
|
@@ -37,6 +37,12 @@ class RefundController extends BaseController
|
|
|
if ($order->mainId != $this->mainId) {
|
|
|
util::fail('不是你的订单');
|
|
|
}
|
|
|
+ $addTime = $order->addTime;
|
|
|
+ $addTime = strtotime($addTime);
|
|
|
+ $earTime = strtotime('2025-05-01 00:00:00');
|
|
|
+ if ($addTime < $earTime) {
|
|
|
+ util::fail('2025.5.1号前的订单,不能退款');
|
|
|
+ }
|
|
|
$shop = $this->shop;
|
|
|
$purchaseId = $order->purchaseId ?? 0;
|
|
|
$cg = PurchaseClass::getById($purchaseId, true);
|