chore(admin-platform-order): failed reason keyword max len uses config
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user