修改提示

This commit is contained in:
wh_zcy 2022-12-14 14:42:02 +08:00
parent 702f09881b
commit 693b4c9ac3
2 changed files with 20 additions and 20 deletions

View File

@ -32,29 +32,29 @@ type IRobot interface {
type Robot struct { type Robot struct {
IStore IStore
scene IScene //场景 scene IScene //场景
account string account string
sid string sid string
conn *websocket.Conn conn *websocket.Conn
data map[string]interface{} //机器人缓存数据 data map[string]interface{} //机器人缓存数据
status uint32 //状态 status uint32 //状态
lock sync.Mutex //数据缓存锁 lock sync.Mutex //数据缓存锁
sceneQueue *Queue[IScene] //场景队列 sceneQueue *Queue[IScene] //场景队列
config *storage.Config //配置 config *storage.Config //配置
resultCh chan *CallResult //请求结果通道 resultCh chan *CallResult //请求结果通道
sceneResultCh chan *CallResult //场景结果通道 // sceneResultCh chan *CallResult //场景结果通道
ReportMap map[int]map[string]*Statistics //测试报告 key1:场景序号 key2:协议 ReportMap map[int]map[string]*Statistics //测试报告 key1:场景序号 key2:协议
elipseTotal time.Duration elipseTotal time.Duration
} }
func NewRobot(config *storage.Config) *Robot { func NewRobot(config *storage.Config) *Robot {
robot := &Robot{ robot := &Robot{
data: make(map[string]interface{}), data: make(map[string]interface{}),
sceneQueue: NewQueue[IScene](), sceneQueue: NewQueue[IScene](),
config: config, config: config,
resultCh: make(chan *CallResult, 100), resultCh: make(chan *CallResult, 1000),
sceneResultCh: make(chan *CallResult, 50), // sceneResultCh: make(chan *CallResult, 50),
ReportMap: make(map[int]map[string]*Statistics), ReportMap: make(map[int]map[string]*Statistics),
} }
robot.Store("sid", config.Global.SId) robot.Store("sid", config.Global.SId)
return robot return robot

View File

@ -148,7 +148,7 @@ func (mw *MainWindow) showProgress(data interface{}, args ...interface{}) {
} }
mw.progress.SetValue(r) mw.progress.SetValue(r)
if r >= 1 { if r >= 1 {
mw.tipLabel.SetText("正在生成报表...") mw.tipLabel.SetText("正在处理结果...")
} }
} }