批量BMPA 安全阀:续费单未绑订阅不允许推进并新增测试
This commit is contained in:
@@ -1536,6 +1536,11 @@ class PlatformOrderController extends Controller
|
||||
}
|
||||
|
||||
try {
|
||||
// 治理优先:续费单必须绑定订阅(兼容历史脏数据/手工改库等场景)
|
||||
if ((string) ($order->order_type ?? '') === 'renewal' && ! (int) ($order->site_subscription_id ?? 0)) {
|
||||
throw new \InvalidArgumentException('续费单未绑定订阅(site_subscription_id 为空),不允许批量标记支付并生效。');
|
||||
}
|
||||
|
||||
// 治理优先:若该订单已有退款轨迹,则不允许推进
|
||||
if ((float) $order->refundTotal() > 0) {
|
||||
throw new \InvalidArgumentException('订单存在退款轨迹,不允许批量标记支付并生效,请先完成退款治理。');
|
||||
|
||||
Reference in New Issue
Block a user