Compare commits

...
2 Commits
Author SHA1 Message Date
mio 0035307762 fix: getLatestUrl does not get the last url when the timestamp is the same 2023-05-01 16:36:43 +08:00
mio a1257bdbfb chore: test auto update 2023-05-01 16:21:01 +08:00
2 changed files with 2 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "star-rail-warp-export",
"version": "0.0.1",
"version": "0.0.2",
"main": "./dist/electron/main/main.js",
"author": "biuuu <https://github.com/biuuu>",
"license": "MIT",
+1 -1
View File
@@ -90,7 +90,7 @@ const getLatestUrl = (list) => {
const tsMch = list[i].match(/timestamp=(\d+)/)
if (tsMch?.[1]) {
const ts = parseInt(tsMch[1])
if (time < parseInt(tsMch[1])) {
if (time <= parseInt(tsMch[1])) {
time = ts
result = list[i]
}