1
0
mirror of https://github.com/FloatTech/zbpdata.git synced 2026-02-15 11:49:35 +09:00

Compare commits

...

13 Commits

Author SHA1 Message Date
方柳煜
637ae6342b Add files via upload (#73) 2026-02-01 14:20:23 +08:00
源文雨
74e3bf5dc8 feat: ignore private on push 2026-01-03 18:36:03 +08:00
himawari
a1b4b35b81 Update Go version in release workflow (#72) 2025-12-29 23:38:32 +08:00
himawari
aa36b73261 添加小红书文案数据库 (#70) 2025-12-29 23:27:55 +08:00
himawari
9ab61d6b81 fix: 修改go版本 (#71) 2025-12-29 23:21:15 +08:00
莫思潋
1b0abcd3fe update wife data (#69) 2025-09-28 10:46:02 +08:00
莫思潋
c1878300e9 remove temp (#68) 2025-09-18 16:34:20 +08:00
莫思潋
2b10767f59 update wife data (#67)
* update wife data
2025-09-18 15:59:37 +08:00
莫思潋
328d7638e6 update wife data (#66)
* update wife data
2025-09-16 20:34:07 +08:00
莫思潋
6bcac0faab fix swords-02 (#65) 2025-06-18 15:42:15 +08:00
源文雨
4f751a1cda feat: support multi-addrs 2025-05-31 04:10:30 +09:00
源文雨
f97dac5ce0 feat: support multi-addrs 2025-05-31 04:01:55 +09:00
源文雨
74c5464a0b feat: support multi-addrs 2025-05-31 03:53:48 +09:00
8 changed files with 35 additions and 25 deletions

View File

@@ -8,7 +8,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@master
with:
go-version: '1.20'
go-version: '1.24'
- name: Check out code into the Go module directory
uses: actions/checkout@master

View File

@@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.20'
go-version: '1.24'
- name: Run Updater
env:

4
.gitignore vendored
View File

@@ -1,7 +1,7 @@
[a-z]*/
cache
/SetuTime/search
/VtbQuotation/store
.DS_Store
.vscode
/[a-z]*
!/Tarot
!/Tarot

1
Handou/idiom.json Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 KiB

After

Width:  |  Height:  |  Size: 313 KiB

2
Wife

Submodule Wife updated: b92443d3d4...ce7ecbc2e1

BIN
Xhstext/xhstext.db Normal file

Binary file not shown.

49
main.go
View File

@@ -9,6 +9,7 @@ import (
"flag"
"fmt"
"io/fs"
"net"
"os"
"strings"
"unicode"
@@ -57,30 +58,38 @@ func main() {
*(*unsafe.Pointer)(unsafe.Pointer(&md5s[i])) = unsafe.Pointer(&buf)
*(*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"))
err = r.Connect()
hosts, err := net.LookupHost("reilia.fumiama.top")
if err != nil {
panic(err)
}
for i, fn := range files {
for c := 0; c < 16; c++ {
err = r.Set("data/"+fn, md5s[i])
fmt.Println("set", "data/"+fn, "=", hex.EncodeToString(helper.StringToBytes(md5s[i])))
if err == nil {
break
}
if c >= 15 {
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)
for _, h := range hosts {
fmt.Println("推送到:", h)
r := registry.NewRegedit(net.JoinHostPort(h, "32664"), "", "fumiama", os.Getenv("REILIA_SPS"))
err = r.Connect()
if err != nil {
fmt.Println(err)
continue
}
for i, fn := range files {
for c := 0; c < 16; c++ {
err = r.Set("data/"+fn, md5s[i])
fmt.Println("set", "data/"+fn, "=", hex.EncodeToString(helper.StringToBytes(md5s[i])))
if err == nil {
break
}
if c >= 15 {
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()
}