打印影响延迟优化

This commit is contained in:
hoteas 2022-05-11 13:56:53 +08:00
parent 95bfea4feb
commit 1826e76a34
2 changed files with 11 additions and 5 deletions

View File

@ -15,9 +15,9 @@ var SearchRecordCtr = Ctr{
page = 1
}
if pageSize <= 0 {
pageSize = 20
}
//if pageSize <= 0 {
pageSize = 50
//}
data := Map{"del_flag": 0}
keywords := that.Req.FormValue("keywords")

View File

@ -2,11 +2,14 @@ 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"
@ -36,8 +39,11 @@ func main() {
appIns.SetConnectListener(func(that *Context) (isFinished bool) {
//发送短信校验
that.RespFunc = func() {
fmt.Println(that.Req.Form)
fmt.Println(that.RespData)
go func(Form url.Values, RespData common.Map) {
fmt.Println(Form)
fmt.Println(RespData)
}(that.Req.Form, that.RespData)
}
return isFinished