fix: match legacy channel business owner display

This commit is contained in:
Yvan
2026-11-05 22:21:52 +08:00
parent 999c9a6315
commit 6a0d0210d4
3 changed files with 4 additions and 6 deletions
+1 -3
View File
@@ -49,9 +49,7 @@ type Channel struct {
}
func (c *Channel) BusinessDisplayName() string {
if len(c.BusinessPath) > 0 {
return strings.Join(c.BusinessPath, "→")
}
// 沿用旧商务系统:显示绑定的平台商务账号及当前商务登录名。
account, user := strings.TrimSpace(c.BindingAccount), strings.TrimSpace(c.BindingUserName)
if account == "" {
return user