main.go 442 Bytes
package main

import (
	"pro2d/cmd/test/service"
	"pro2d/pb"
	"time"
)

func main() {
	tc := service.NewTestClient()
	if tc == nil {
		return
	}

	tc.Login("90007")

	pp := &pb.RoleEndBattleReq{
		ChapterId: 1,
		CarbonId:  1,
		Pass:      true,
		TeamId:    "10000011000002",
	}

	time.Sleep(2 * time.Second)
	for {
		//tc.SendPB(pb.ProtoCode_HeartReq, nil)
		tc.SendPB(pb.ProtoCode_RoleEndBattleReq, pp)
		time.Sleep(5 * time.Second)
	}

}