From 95bfea4febaf3296793f45419282a0d5aabbee15 Mon Sep 17 00:00:00 2001 From: hoteas <等> Date: Wed, 11 May 2022 00:44:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=94=BF=E7=AD=96=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/app/declare.go | 2 +- example/main.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/example/app/declare.go b/example/app/declare.go index eeb24cf..52a4df8 100644 --- a/example/app/declare.go +++ b/example/app/declare.go @@ -553,7 +553,7 @@ var DeclareCtr = Ctr{ if companyName == company.GetString("name") || company.GetString("name") == "" { that.Db.Update("company", data, Map{"user_id": that.Session("user_id").Data}) } - if companyName != company.GetString("name") { + if companyName != company.GetString("name") || user.GetCeilInt("certification_flag") == 0 { //扫码绑定后,第一次使用匹配功能,自动进行认证,并更新企业信息 if (user.GetCeilInt("certification_flag") == 0 || company.GetString("name") == "") && user.GetCeilInt64("salesman_id") != 0 { that.Db.Update("user", Map{"certification_flag": 1}, Map{"id": user.GetCeilInt("id")}) diff --git a/example/main.go b/example/main.go index 021b45a..01e7453 100644 --- a/example/main.go +++ b/example/main.go @@ -35,6 +35,10 @@ func main() { //用户侧访问前设置 appIns.SetConnectListener(func(that *Context) (isFinished bool) { //发送短信校验 + that.RespFunc = func() { + fmt.Println(that.Req.Form) + fmt.Println(that.RespData) + } return isFinished })