This commit is contained in:
wh_zcy 2023-03-10 18:24:22 +08:00
parent d7e8851f7e
commit a8632d3e20
2 changed files with 9 additions and 3 deletions

View File

@ -123,6 +123,11 @@ func (c *ConnServiceImpl) ListenerPush() {
// SendMsg ....
func (c *ConnServiceImpl) SendMsg(msg *pb.UserMessage, rsp proto.Message) (err error) {
defer func() {
if err := recover(); err != nil {
logrus.Errorf("sendMsg %v", err)
}
}()
// msg.Sec = r.BuildSecStr()
if comm.ProtoMarshal(rsp, msg) {
if data, err := proto.Marshal(msg); err != nil {

View File

@ -149,7 +149,7 @@ func (this *HeroZhaomuView) CreateView(t *model.TestCase) fyne.CanvasObject {
for i := 0; i < cast.ToInt(loopCount.Text); i++ {
choukaBtnFunc()
time.Sleep(time.Millisecond * 100)
time.Sleep(time.Millisecond * 20)
}
}
@ -201,10 +201,11 @@ func (this *HeroZhaomuView) resListener() {
return
}
write := bufio.NewWriter(this.f)
write := bufio.NewWriterSize(this.f, 1024)
for _, v := range rsp.Data {
for _, o := range v.Atno {
if o.A == "hero" && o.O != "" && o.T != "" {
if o.A == "hero" && o.T != "" {
logrus.Debug(o.T)
write.WriteString(o.T + "\r\n")
}
}