fix: match legacy channel business owner display
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user