|
|
@@ -108,15 +108,19 @@ func MsgTxtHandler(w ResponseWriter, r *Request) {
|
|
|
Url: "http://mp.weixin.qq.com/s?__biz=MzA5MTk0MTk5Ng==&mid=406103124&idx=1&sn=c12f1cc34899f0c3b36492885567315a#rd",
|
|
|
}})
|
|
|
} else if r.Content == "开始识别验证码" { //进入人工识别验证码工作
|
|
|
- w.PostText(wf.SysConfig.DistinguishWork["in"].(string))
|
|
|
- distinguishWork.Start(openid)
|
|
|
+ w.ReplyText(wf.SysConfig.DistinguishWork["in"].(string))
|
|
|
+ time.AfterFunc(2*time.Second, func() {
|
|
|
+ distinguishWork.Start(openid)
|
|
|
+ })
|
|
|
} else if distinguishWork.IsWorking(openid) { //人工识别验证码工作中。。。
|
|
|
if r.Content == "结束识别验证码" {
|
|
|
w.ReplyText(wf.SysConfig.DistinguishWork["out"].(string))
|
|
|
distinguishWork.End(openid)
|
|
|
} else if distinguishWork.IsWaitReply(openid) {
|
|
|
w.PostText(wf.SysConfig.DistinguishWork["reply"].(string))
|
|
|
- distinguishWork.Reply(openid, r.Content)
|
|
|
+ time.AfterFunc(1*time.Second, func() {
|
|
|
+ distinguishWork.Reply(openid, r.Content)
|
|
|
+ })
|
|
|
}
|
|
|
} else {
|
|
|
now := time.Now()
|