
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@x-edu/channel
Advanced tools
获取频道数据
await getChannelData({
channelId, // 必填 频道 ID
userRole, // 选填 用户角色,用于过滤频道板块
loginStatus, // 选填 登陆状态 用于过滤频道板块
platform, // 选填 平台 WEB | AAP,默认 WEB
env, // 选填 环境 ‘preprodcution’ | ‘ncet-xedu’ 默认 ‘ncet-xedu’
libraryServiceName, // 选填 库服务名 默认 zxx
appid, // 必填
isPreset, // 选填 默认 false
filter, // 选填 (section) => boolean 板块过滤函数
})
/**
* 1. 内部根据配置进行过滤,配置项为 是否需要登陆 角色权限
* 2. platform 只有在管理台选中 APP 时才需要特殊处理,主要用于 web 和 app 展示不同数据的情况
* 3. 自定义板块的数据格式和移动端保持一致
**/
图片轮播板块数据转换
convertBannerSection(section) // section 为 getChannelData 返回的数组中的一项
橱窗推荐板块数据转换
await convertWindowRecommend(section) // section 为 getChannelData 返回的数组中的一项
专题多组推荐板块数据转换
await convertMutipleGroupRecommend(section) // section 为 getChannelData 返回的数组中的一项
自定义板块数据转换
await convertProvider(section) // section 为 getChannelData 返回的数组中的一项
专题推荐板块数据转换
await convertSpecialRecommend(section) // section 为 getChannelData 返回的数组中的一项
平台枚举
export enum Platform {
WEB = 'WEB',
APP = 'APP',
}
环境枚举
库服务名枚举
登陆状态
FAQs
## API
We found that @x-edu/channel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.