platform plans: admin create order link add back and order_type
This commit is contained in:
@@ -64,7 +64,19 @@
|
||||
</div>
|
||||
<div class="mt-8">
|
||||
<button type="submit" class="btn btn-primary">提交开通意向</button>
|
||||
<a class="btn" href="/admin/platform-orders/create?plan_id={{ $p->id }}">运营手工下单入口</a>
|
||||
@php
|
||||
// 对外页提供“运营手工下单”入口:显式声明 order_type,并带 back 回到套餐页,减少迷路。
|
||||
// 注意:href 使用原样输出(避免 & 影响部分测试/断言),并依赖 BackUrl 安全护栏。
|
||||
$platformPlansBack = \App\Support\BackUrl::sanitizeForLinks('/platform/plans');
|
||||
$createOrderUrl = \App\Support\BackUrl::withBack(
|
||||
'/admin/platform-orders/create?' . \Illuminate\Support\Arr::query([
|
||||
'order_type' => 'new_purchase',
|
||||
'plan_id' => $p->id,
|
||||
]),
|
||||
$platformPlansBack
|
||||
);
|
||||
@endphp
|
||||
<a class="btn" href="{!! $createOrderUrl !!}">运营手工下单入口</a>
|
||||
</div>
|
||||
<div class="muted mt-8">提示:前期先跑通收费闭环与治理;自助开通/自助支付会在后续版本接入。</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user