feat: xxbb
This commit is contained in:
@@ -42,6 +42,16 @@ class ChannelCommand
|
||||
$lines[] = ($i + 1).'. '.$channel->channel_id;
|
||||
$lines[] = ' 备注: '.$remarkLabel.' | 归属: '.$owner.' | '.$status;
|
||||
|
||||
if ($channel->isNewBuilder()) {
|
||||
$btnText = ($remark !== '' ? mb_substr($remark, 0, 18) : $channel->channel_id).' · 渠道码';
|
||||
$markup->addRow(InlineKeyboardButton::make(
|
||||
text: $btnText,
|
||||
copy_text: CopyTextButton::make($channel->channel_id),
|
||||
));
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
$links = $channel->supportLinks();
|
||||
$link = $links[0] ?? $channel->landingPath();
|
||||
if (strlen($link) > 256) {
|
||||
|
||||
Reference in New Issue
Block a user