MCPcopy Create free account
hub / github.com/FloatTech/ZeroBot-Plugin-Playground / getuid

Function getuid

plugin/klala/x.go:33–41  ·  view source on GitHub ↗
(sqquid string)

Source from the content-addressed store, hash-verified

31)
32
33func getuid(sqquid string) (uid int) { // 获取对应游戏uid
34 // 获取本地缓存数据
35 txt, err := os.ReadFile(uidPath + sqquid + ".klala")
36 if err != nil {
37 return 0
38 }
39 uid, _ = strconv.Atoi(string(txt))
40 return
41}
42
43func getWifeOrWq() (m FindMap) {
44 txt, _ := os.ReadFile(wifesPath)

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected