mirror of
https://github.com/FloatTech/zbpdata.git
synced 2026-02-16 04:05:54 +09:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
637ae6342b | ||
|
|
74e3bf5dc8 | ||
|
|
a1b4b35b81 | ||
|
|
aa36b73261 | ||
|
|
9ab61d6b81 | ||
|
|
1b0abcd3fe | ||
|
|
c1878300e9 | ||
|
|
2b10767f59 | ||
|
|
328d7638e6 | ||
|
|
6bcac0faab | ||
|
|
4f751a1cda | ||
|
|
f97dac5ce0 | ||
|
|
74c5464a0b | ||
|
|
ca3652920a |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@master
|
uses: actions/setup-go@master
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.24'
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.24'
|
||||||
|
|
||||||
- name: Run Updater
|
- name: Run Updater
|
||||||
env:
|
env:
|
||||||
|
|||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,7 +1,7 @@
|
|||||||
|
[a-z]*/
|
||||||
cache
|
cache
|
||||||
/SetuTime/search
|
/SetuTime/search
|
||||||
/VtbQuotation/store
|
/VtbQuotation/store
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.vscode
|
.vscode
|
||||||
/[a-z]*
|
!/Tarot
|
||||||
!/Tarot
|
|
||||||
|
|||||||
1
Handou/idiom.json
Normal file
1
Handou/idiom.json
Normal file
File diff suppressed because one or more lines are too long
@@ -56,7 +56,7 @@
|
|||||||
{
|
{
|
||||||
"名称": "三叉戟",
|
"名称": "三叉戟",
|
||||||
"类型": "pole",
|
"类型": "pole",
|
||||||
"耐久上限": 300,
|
"耐久上限": 301,
|
||||||
"价格": 4000
|
"价格": 4000
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 300 KiB After Width: | Height: | Size: 313 KiB |
2
Wife
2
Wife
Submodule Wife updated: b92443d3d4...ce7ecbc2e1
BIN
Xhstext/xhstext.db
Normal file
BIN
Xhstext/xhstext.db
Normal file
Binary file not shown.
49
main.go
49
main.go
@@ -9,6 +9,7 @@ import (
|
|||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/fs"
|
"io/fs"
|
||||||
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"unicode"
|
"unicode"
|
||||||
@@ -57,30 +58,38 @@ func main() {
|
|||||||
*(*unsafe.Pointer)(unsafe.Pointer(&md5s[i])) = unsafe.Pointer(&buf)
|
*(*unsafe.Pointer)(unsafe.Pointer(&md5s[i])) = unsafe.Pointer(&buf)
|
||||||
*(*uintptr)(unsafe.Add(unsafe.Pointer(&md5s[i]), unsafe.Sizeof(uintptr(0)))) = uintptr(16)
|
*(*uintptr)(unsafe.Add(unsafe.Pointer(&md5s[i]), unsafe.Sizeof(uintptr(0)))) = uintptr(16)
|
||||||
}
|
}
|
||||||
r := registry.NewRegedit("reilia.fumiama.top:32664", "", "fumiama", os.Getenv("REILIA_SPS"))
|
hosts, err := net.LookupHost("reilia.fumiama.top")
|
||||||
err = r.Connect()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
for i, fn := range files {
|
for _, h := range hosts {
|
||||||
for c := 0; c < 16; c++ {
|
fmt.Println("推送到:", h)
|
||||||
err = r.Set("data/"+fn, md5s[i])
|
r := registry.NewRegedit(net.JoinHostPort(h, "32664"), "", "fumiama", os.Getenv("REILIA_SPS"))
|
||||||
fmt.Println("set", "data/"+fn, "=", hex.EncodeToString(helper.StringToBytes(md5s[i])))
|
err = r.Connect()
|
||||||
if err == nil {
|
if err != nil {
|
||||||
break
|
fmt.Println(err)
|
||||||
}
|
continue
|
||||||
if c >= 15 {
|
}
|
||||||
panic("ERROR:" + err.Error() + ", max retry times exceeded")
|
for i, fn := range files {
|
||||||
} else {
|
for c := 0; c < 16; c++ {
|
||||||
fmt.Println("ERROR:", err, ", retry times:", c)
|
err = r.Set("data/"+fn, md5s[i])
|
||||||
}
|
fmt.Println("set", "data/"+fn, "=", hex.EncodeToString(helper.StringToBytes(md5s[i])))
|
||||||
_ = r.Close()
|
if err == nil {
|
||||||
process.SleepAbout1sTo2s()
|
break
|
||||||
err = r.Connect()
|
}
|
||||||
if err != nil {
|
if c >= 15 {
|
||||||
panic(err)
|
panic("ERROR:" + err.Error() + ", max retry times exceeded")
|
||||||
|
} else {
|
||||||
|
fmt.Println("ERROR:", err, ", retry times:", c)
|
||||||
|
}
|
||||||
|
_ = r.Close()
|
||||||
|
process.SleepAbout1sTo2s()
|
||||||
|
err = r.Connect()
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_ = r.Close()
|
||||||
}
|
}
|
||||||
_ = r.Close()
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user