mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 14:22:26 +08:00
修复登录问题
This commit is contained in:
@@ -53,11 +53,12 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if config.GetConfig().Hk4eRobot.DosEnable {
|
if config.GetConfig().Hk4eRobot.DosEnable {
|
||||||
for i := 0; i < int(config.GetConfig().Hk4eRobot.DosTotalNum); i++ {
|
dosBatchNum := int(config.GetConfig().Hk4eRobot.DosBatchNum)
|
||||||
|
for i := 0; i < int(config.GetConfig().Hk4eRobot.DosTotalNum); i += dosBatchNum {
|
||||||
wg := new(sync.WaitGroup)
|
wg := new(sync.WaitGroup)
|
||||||
wg.Add(int(config.GetConfig().Hk4eRobot.DosBatchNum))
|
wg.Add(dosBatchNum)
|
||||||
for j := 0; j < int(config.GetConfig().Hk4eRobot.DosBatchNum); j++ {
|
for j := 0; j < dosBatchNum; j++ {
|
||||||
go httpLogin(config.GetConfig().Hk4eRobot.Account+"_"+strconv.Itoa(i), dispatchInfo, wg)
|
go httpLogin(config.GetConfig().Hk4eRobot.Account+"_"+strconv.Itoa(i+j), dispatchInfo, wg)
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user