修改上传图片安全验证问题
This commit is contained in:
@@ -99,7 +99,7 @@ function isOnCancelEmpty(onCancelFunc) {
|
||||
const normalized = funcString.replace(/\s/g, "");
|
||||
return emptyFunctionPatterns.includes(normalized);
|
||||
} catch (error) {
|
||||
console.error("检查 onCancel 函数时出错:", error);
|
||||
console.warn("检查 onCancel 函数时出错:", error);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -531,7 +531,7 @@ function Result() {
|
||||
// setQrCodeUrl(tempFilePath);
|
||||
// }
|
||||
} catch (error) {
|
||||
console.error("获取二维码失败:", error);
|
||||
console.warn("获取二维码失败:", error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -645,7 +645,7 @@ function Result() {
|
||||
});
|
||||
return imageUrl;
|
||||
} catch (error) {
|
||||
console.error("生成图片失败:", error);
|
||||
console.warn("生成图片失败:", error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user