This commit is contained in:
邹宗楠
2024-10-11 14:20:28 +08:00
parent c5d0f41f10
commit cc34fae364
4 changed files with 8 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import (
"net/http"
"net/url"
"strings"
"time"
)
type MtwmController struct {
@@ -38,6 +39,7 @@ func (c *MtwmController) NewOrder() {
}
func (c *MtwmController) OrderAccepted() {
time.Sleep(200 * time.Millisecond) // 测试看看有的订单来不拣货,可能是这个状态推的太快了,上一个NewOrder还没处理结束导致的
c.onCallbackMsg(mtwmapi.MsgTypeOrderAccepted)
}