[![Build Status](https://xxx/api/badges/sre/GenshinImpact/status.svg)](https://xxx/GenshinImpact) 原神工具箱 *** ## build amd64 on tx ecs ```bash cd /root rm -rf GenshinImpact git clone https://git.sre.ink/go/GenshinImpact.git cd GenshinImpact CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go mod tidy CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o genshin.bin main.go docker build -t sre/genshin:amd64 . docker rm -f genshin docker run --name genshin --restart always -d sre/genshin:amd64 docker logs -f genshin ``` ## build arm64 on oracle ```bash cd /root rm -rf GenshinImpact git clone https://git.sre.ink/go/GenshinImpact.git cd GenshinImpact CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go mod tidy CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go build -v -a -o genshin.bin main.go docker build -t sre/genshin:arm64 . docker rm -f genshin docker run --name genshin --restart always -d sre/genshin:arm64 docker logs -f genshin ``` # mihoyo bbs get cookie 获取米游社Cookie 将下列地址存为书签 ```javascript var cookie=document.cookie;var ask=confirm('Cookie:'+cookie+'\n\nDo you want to copy the cookie to the clipboard?');if(ask==true){copy(cookie);msg=cookie}else{msg='Cancel'} ``` 登录后点击即可。 # up char 当期up占5星出率的50% 1个 当期up占4星出率的50% 3个 5星概率为0.6% 最多90次必出5星 4星概率为5.1% 其中角色2.55% 武器2.55% 最多10次必出4星 # up weapon up5占5星出货75% up4占4星出货75% 5星概率为0.7% 最多80次必出5星 4星概率为6% 其中角色3% 武器3% 最多10次必出4星 当起源到4星时 75%为up武器 如果本次不是当期up 下一个一定是up # notice https://github.com/dustoair/genshin-daily-notice # Golang 定时任务 github/robfig/cron/v3 https://blog.csdn.net/zjbyough/article/details/113853582