feat: 更新获取CNB配置的路由,优化参数处理并添加错误处理
This commit is contained in:
@@ -45,10 +45,7 @@ export class CNBManager {
|
||||
return cnbItem
|
||||
}
|
||||
async getCNB(opts?: { username?: string, kevisualToken?: string }): Promise<CNBItem | null> {
|
||||
if (opts?.username) {
|
||||
return this.getDefaultCNB()
|
||||
}
|
||||
const username = opts?.kevisualToken
|
||||
const username = opts?.username
|
||||
const cnbItem = this.cnbMap.get(username)
|
||||
if (cnbItem) {
|
||||
cnbItem.runAt = Date.now()
|
||||
|
||||
Reference in New Issue
Block a user