配置化:同步失败原因链接长度阈值
This commit is contained in:
9
config/saasshop.php
Normal file
9
config/saasshop.php
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
// 平台订单列表中“同步失败原因”链接的最大长度阈值。
|
||||||
|
// 失败原因过长时不生成 sync_error_keyword 链接,避免 URL 过长/特殊字符破坏 query。
|
||||||
|
'platform_orders' => [
|
||||||
|
'sync_error_keyword_link_max_len' => 200,
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
@php
|
@php
|
||||||
// 失败原因过长时不生成 sync_error_keyword 链接,避免 URL 过长/特殊字符破坏 query
|
// 失败原因过长时不生成 sync_error_keyword 链接,避免 URL 过长/特殊字符破坏 query
|
||||||
$SYNC_ERROR_KEYWORD_LINK_MAX_LEN = 200;
|
$SYNC_ERROR_KEYWORD_LINK_MAX_LEN = (int) config('saasshop.platform_orders.sync_error_keyword_link_max_len', 200);
|
||||||
@endphp
|
@endphp
|
||||||
<div class="card mb-20">
|
<div class="card mb-20">
|
||||||
<p class="muted muted-tight">这里是总台视角的平台收费主链骨架页,当前阶段先承接套餐订购 / 续费 / 生效跟踪。</p>
|
<p class="muted muted-tight">这里是总台视角的平台收费主链骨架页,当前阶段先承接套餐订购 / 续费 / 生效跟踪。</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user