chore(admin-platform-order): failed reason keyword max len uses config

This commit is contained in:
萝卜
2026-03-16 17:47:47 +08:00
parent d6d8748ce6
commit ef46111efb
2 changed files with 82 additions and 2 deletions

View File

@@ -744,7 +744,8 @@
$syncFailedListUrl = $makePlatformOrderIndexUrl(['sync_status' => 'failed']);
// 避免 URL 过长/特殊字符破坏 query失败原因过长时不生成 keyword 链接
$SYNC_REASON_KEYWORD_MAX_LEN = 80;
// 与列表页/仪表盘保持一致:由 config 统一控制阈值。
$SYNC_REASON_KEYWORD_MAX_LEN = (int) config('saasshop.platform_orders.sync_error_keyword_link_max_len', 200);
$syncReasonUrl = '';
if ($syncMsg !== '' && mb_strlen($syncMsg) <= $SYNC_REASON_KEYWORD_MAX_LEN) {
$syncReasonUrl = $makePlatformOrderIndexUrl([
@@ -794,7 +795,8 @@
$bmpaListUrl = $makePlatformOrderIndexUrl(['bmpa_failed_only' => '1']);
// 避免 URL 过长/特殊字符破坏 query失败原因过长时不生成 keyword 链接
$BMPA_REASON_KEYWORD_MAX_LEN = 80;
// 与列表页/仪表盘保持一致:由 config 统一控制阈值。
$BMPA_REASON_KEYWORD_MAX_LEN = (int) config('saasshop.platform_orders.sync_error_keyword_link_max_len', 200);
$bmpaReasonUrl = '';
if ($bmpaMsg !== '' && mb_strlen($bmpaMsg) <= $BMPA_REASON_KEYWORD_MAX_LEN) {
$bmpaReasonUrl = $makePlatformOrderIndexUrl([