main.go 523 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",
	//}

	pp := &pb.HeroUpLevelReq{HeroId: "10000011000001", Items: "5002=97"}

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

}