Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jensen
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Skye Yu
jensen
Commits
1d0e8ad4
Commit
1d0e8ad4
authored
Aug 20, 2025
by
martin hou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 恢复对重复签名的处理
parent
39e87717
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
jensen.js
src/utils/jensen.js
+16
-0
No files found.
src/utils/jensen.js
View file @
1d0e8ad4
...
...
@@ -800,6 +800,22 @@ Jensen.prototype.listFiles = async function () {
if
(
fcount
==
-
1
)
{
// return [];
}
// 如果files有重复的signature,那就持续改为不重复的为止
// Check for duplicate signatures and regenerate if needed
const
signatureCounts
=
{};
files
.
forEach
(
file
=>
{
signatureCounts
[
file
.
signature
]
=
(
signatureCounts
[
file
.
signature
]
||
0
)
+
1
;
});
// Only regenerate signatures for items that have duplicates
files
.
forEach
(
file
=>
{
if
(
signatureCounts
[
file
.
signature
]
>
1
)
{
// Add timestamp to make signature unique
file
.
signature
=
md5
(
`
${
file
.
name
}${
file
.
length
}
`
);
}
});
if
((
fc
&&
files
.
length
>=
fc
.
count
)
||
(
fcount
>
-
1
&&
files
.
length
>=
fcount
))
{
// delete jensen[tag];
jensen
[
tag
]
=
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment