开启后端严格空值检查
This commit is contained in:
@@ -69,7 +69,15 @@ export function resolvePersistedCloudtentaclesContextWithFallback(
|
||||
continue;
|
||||
}
|
||||
|
||||
const token = String(session?.token || "").trim();
|
||||
if (!session) {
|
||||
lastError = createHttpError(
|
||||
`cloudtentacles 账号 ${sourceKey} 没有可用 token`,
|
||||
{ statusCode: 409, errorCode: "kuaishou_cloud_missing_cloud_token" }
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
const token = String(session.token || "").trim();
|
||||
if (!token) {
|
||||
lastError = createHttpError(
|
||||
`cloudtentacles 账号 ${sourceKey} 没有可用 token`,
|
||||
|
||||
Reference in New Issue
Block a user