打印影响延迟优化

This commit is contained in:
hoteas
2022-05-12 18:27:01 +08:00
parent 6a35466221
commit 0f2b47d6d9
2 changed files with 70 additions and 11 deletions
+7 -10
View File
@@ -2,14 +2,11 @@ package main
import (
. "code.hoteas.com/golang/hotime"
"code.hoteas.com/golang/hotime/common"
"code.hoteas.com/golang/hotime/dri/aliyun"
"code.hoteas.com/golang/hotime/dri/ddsms"
"code.hoteas.com/golang/hotime/dri/wechat"
"code.hoteas.com/golang/hotime/example/app"
"code.hoteas.com/golang/hotime/example/provider"
"net/url"
//. "code.hoteas.com/golang/hotime/common"
"fmt"
"time"
@@ -38,13 +35,13 @@ func main() {
//用户侧访问前设置
appIns.SetConnectListener(func(that *Context) (isFinished bool) {
//发送短信校验
that.RespFunc = func() {
go func(Form url.Values, RespData common.Map) {
fmt.Println(Form)
fmt.Println(RespData)
}(that.Req.Form, that.RespData)
}
//that.RespFunc = func() {
// go func(Form url.Values, RespData common.Map) {
// fmt.Println(Form)
// fmt.Println(RespData)
// }(that.Req.Form, that.RespData)
//
//}
return isFinished
})