From 1826e76a3415a72a20d2db5b03175b5550122fec Mon Sep 17 00:00:00 2001 From: hoteas <等> Date: Wed, 11 May 2022 13:56:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/app/search_record.go | 6 +++--- example/main.go | 10 ++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/example/app/search_record.go b/example/app/search_record.go index 038b827..9ea13a5 100644 --- a/example/app/search_record.go +++ b/example/app/search_record.go @@ -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") diff --git a/example/main.go b/example/main.go index 01e7453..2c37904 100644 --- a/example/main.go +++ b/example/main.go @@ -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 From c9f33eefec7375e79e5dc12a2858ab774b645885 Mon Sep 17 00:00:00 2001 From: hoteas <等> Date: Wed, 11 May 2022 14:55:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/app/vip_order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/app/vip_order.go b/example/app/vip_order.go index c41a5fb..a5a3eb5 100644 --- a/example/app/vip_order.go +++ b/example/app/vip_order.go @@ -80,7 +80,7 @@ var VipOrderCtr = Ctr{ if user.GetCeilInt("salesman_id") != 0 { data["salesman_id"] = user.GetCeilInt("salesman_id") } - data["name"] = tp + "1年VIP会员" + data["name"] = companyName + tp + "1年VIP会员" jsParams, e := wechat.WxPay.GetJsOrder(data.GetCeilInt64("amount"), that.Config.GetString("wechatAppID"), wc.GetString("openid"), data.GetString("name"), data.GetString("sn"), that.Config.GetString("wechatAppNotifyUrl")) if e != nil {