修改上传图片安全验证问题
This commit is contained in:
@@ -77,7 +77,7 @@ const CommentReply = () => {
|
||||
if (allCommentIds.length > 0) {
|
||||
// 使用统一接口标记已读,传入所有评论ID
|
||||
messageService.markAsRead('comment', allCommentIds).catch(e => {
|
||||
console.error("标记评论已读失败:", e);
|
||||
console.warn("标记评论已读失败:", e);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -221,7 +221,7 @@ const CommentReply = () => {
|
||||
|
||||
if (allCommentIds.length > 0) {
|
||||
messageService.markAsRead('comment', allCommentIds).catch(e => {
|
||||
console.error("标记评论已读失败:", e);
|
||||
console.warn("标记评论已读失败:", e);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ const EnableNotificationPage: React.FC = () => {
|
||||
setQrCodeUrl(res.data.ServiceAccountQRCode);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取二维码失败:', error);
|
||||
console.warn('获取二维码失败:', error);
|
||||
}
|
||||
};
|
||||
fetchQRCode();
|
||||
|
||||
@@ -62,7 +62,7 @@ const NewFollow = () => {
|
||||
if (allFanIds.length > 0) {
|
||||
// 使用统一接口标记已读,传入所有关注者ID
|
||||
messageService.markAsRead('follow', allFanIds).catch(e => {
|
||||
console.error("标记关注已读失败:", e);
|
||||
console.warn("标记关注已读失败:", e);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
@@ -168,7 +168,7 @@ const NewFollow = () => {
|
||||
|
||||
if (allFanIds.length > 0) {
|
||||
messageService.markAsRead('follow', allFanIds).catch(e => {
|
||||
console.error("标记关注已读失败:", e);
|
||||
console.warn("标记关注已读失败:", e);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -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