diff --git a/lib/core/mml_client/mml_client.go b/lib/core/mml_client/mml_client.go index 0e629514..2ac642f7 100644 --- a/lib/core/mml_client/mml_client.go +++ b/lib/core/mml_client/mml_client.go @@ -36,11 +36,11 @@ func NewMMLClient(ip string) (*MMLClient, error) { fmt.Fprintln(conn, passwordMML) // 发送后等待 - awaitTime := time.Duration(500) * time.Millisecond + awaitTime := time.Duration(300) * time.Millisecond time.Sleep(awaitTime) // 读取内容 - buf := make([]byte, 20*1024) + buf := make([]byte, 1024*1024*1) n, err := conn.Read(buf) if err != nil { return nil, err @@ -69,7 +69,7 @@ func (c *MMLClient) Send(msg string) error { // 封装Receive函数,用于从TCP连接中接收数据 func (c *MMLClient) Receive() (string, error) { - buf := make([]byte, 1024*8) + buf := make([]byte, 1024*1024*1) n, err := c.reader.Read(buf) if err != nil { if err == io.EOF {