diff --git a/resources/views/admin/platform_orders/show.blade.php b/resources/views/admin/platform_orders/show.blade.php
index e01d72b..fd6e250 100644
--- a/resources/views/admin/platform_orders/show.blade.php
+++ b/resources/views/admin/platform_orders/show.blade.php
@@ -184,17 +184,28 @@
- @if($markPaidBlockedByRefund)
-
- 提示:当前订单已存在退款记录/退款汇总,建议先核对退款轨迹与状态后再进行「标记支付并生效」。
-
|
-
去核对退款
-
- @elseif($markPaidBlockedByReceiptMismatch)
-
- 提示:当前订单已存在支付回执,但回执总额与订单金额不一致,建议先补齐/修正回执后再进行「标记支付并生效」。
-
|
-
去补回执
+ @if($markPaidBlockedByRefund || $markPaidBlockedByReceiptMismatch)
+
+
BMPA 治理提示(当前不建议/不可直接标记支付并生效)
+
+ @if($markPaidBlockedByRefund)
+
+ 原因:当前订单已存在退款记录/退款汇总。
+
|
+
去核对退款
+
+ @endif
+ @if($markPaidBlockedByReceiptMismatch)
+
+ 原因:当前订单已存在支付回执,但回执总额与订单金额不一致。
+
|
+
去补回执
+
+ @endif
+
+ 建议:先补齐/修正回执与退款轨迹(使金额与状态口径一致),再执行 BMPA。
+
+
@endif
diff --git a/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGovernanceBlockTest.php b/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGovernanceBlockTest.php
new file mode 100644
index 0000000..8f258dd
--- /dev/null
+++ b/tests/Feature/AdminPlatformOrderShowMarkPaidAndActivateGovernanceBlockTest.php
@@ -0,0 +1,77 @@
+seed();
+
+ $this->post('/admin/login', [
+ 'email' => 'platform.admin@demo.local',
+ 'password' => 'Platform@123456',
+ ])->assertRedirect('/admin');
+ }
+
+ public function test_should_render_governance_block_when_bmpa_blocked(): void
+ {
+ $this->loginAsPlatformAdmin();
+
+ $merchant = Merchant::query()->firstOrFail();
+ $plan = Plan::query()->create([
+ 'code' => 'po_show_bmpa_gov_block_plan',
+ 'name' => 'BMPA治理提示块测试套餐',
+ 'billing_cycle' => 'monthly',
+ 'price' => 10,
+ 'list_price' => 10,
+ 'status' => 'active',
+ 'sort' => 10,
+ 'published_at' => now(),
+ ]);
+
+ $order = PlatformOrder::query()->create([
+ 'merchant_id' => $merchant->id,
+ 'plan_id' => $plan->id,
+ 'order_no' => 'PO_SHOW_BMPA_GOV_BLOCK_0001',
+ 'order_type' => 'new_purchase',
+ 'status' => 'pending',
+ 'payment_status' => 'unpaid',
+ 'plan_name' => $plan->name,
+ 'billing_cycle' => $plan->billing_cycle,
+ 'period_months' => 1,
+ 'quantity' => 1,
+ 'payable_amount' => 10,
+ 'paid_amount' => 0,
+ 'placed_at' => now(),
+ 'meta' => [
+ 'refund_receipts' => [
+ [
+ 'type' => 'refund',
+ 'channel' => 'offline',
+ 'amount' => 1,
+ 'refunded_at' => now()->toDateTimeString(),
+ 'note' => 'test-refund',
+ 'created_at' => now()->toDateTimeString(),
+ 'admin_id' => 1,
+ ],
+ ],
+ ],
+ ]);
+
+ $res = $this->get('/admin/platform-orders/' . $order->id);
+ $res->assertOk();
+
+ $res->assertSee('BMPA 治理提示', false);
+ $res->assertSee('去核对退款', false);
+ $res->assertSee('href="#refund-receipts"', false);
+ }
+}