
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@x-edu/client-toolkit
Advanced tools
npm install @x-edu/x-edu-client-toolkit
传入跳转地址, 获得经过天谕登录信息包装的跳转链接
目前移动云预生产与预生产返回地址相同
import clientToolkit from '@x-edu/client-toolkit'
const url = await clientToolkit.getJumpUrl({
jumpUrl: extInfo.res_jump_url || extInfo?.link_params?.web,
clientId: data.client_id,
uc, // uc实例, 如果isInElectron为true, 则uc必传
env: 'ncet-xedu-beta', // 移动云预生产
isInElectron // 是否在pc端中, 默认false
})
window.open(url, '_blank')
入参
参数 | 说明 | 类型 | 默认值 | 是否必传 |
---|---|---|---|---|
jumpUrl | 跳转链接 | string | 是 | |
clientId | 应用id | string | 是 | |
isInElectron | 是否在pc端 | boolean | false | 否 |
uc | uc实例, 如果isInElectron为true, 则uc必传 | any | 否 | |
env | 项目环境 'ncet-xedu', 'ncet-xedu-beta' 或 'preproduction' | string | 'ncet-xedu' | 否 |
返回
参数 | 说明 | 类型 |
---|---|---|
url | 经过天谕登录包装后的url | string |
传入clientId列表, 获得应用名称
import clientToolkit from '@x-edu/client-toolkit'
const clientIds = items.map((item) => item.client_id).filter((id) => id)
const clientsSimpleInfo = await clientToolkit.getClientInfoSimple({
clientIds,
env: 'ncet-xedu-beta'
})
入参
参数 | 说明 | 类型 | 默认值 | 是否必传 |
---|---|---|---|---|
clientIds | 应用ids | string[] | 是 | |
env | 项目环境 'ncet-xedu', 'ncet-xedu-beta' 或 'preproduction' | string | 'ncet-xedu' | 否 |
返回
参数 | 说明 | 类型 |
---|---|---|
clientsSimpleInfo | 应用信息 | { [client_id] : { client_id:'xxx', client_name:'xxx' } } |
https://docs.qq.com/doc/DSHhUdmFUVVVoTWlr
1. 无client_id 直接跳资源地址
2. 有client_id
2.1 web内, 直接app/view打开
2.2 pc内, 跳转到app/index targetUrl = 使用2.1地址传参
FAQs
``` npm install @x-edu/x-edu-client-toolkit ```
We found that @x-edu/client-toolkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.