From 0ec83f9a95c0aadc00255d9d68533f8753c18612 Mon Sep 17 00:00:00 2001 From: zhoupengwei Date: Fri, 13 May 2022 15:50:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=91=E6=9C=8D=E5=88=B8=E5=88=97=E8=A1=A8+?= =?UTF-8?q?=E9=A2=86=E5=88=B8=EF=BC=8C=E4=BC=81=E4=B8=9A=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=EF=BC=8C=E8=B4=AD=E4=B9=B0vip=E9=A2=86=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/app/company.go | 1 + example/app/vip_order.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/example/app/company.go b/example/app/company.go index fa0632e..1b9f03b 100644 --- a/example/app/company.go +++ b/example/app/company.go @@ -191,6 +191,7 @@ var CompanyCtr = Ctr{ //赠送一张券 data := Map{ "user_id": user_id, + "coupon_id": 1, "code_no": "SN" + time.Now().Format("20060102150405") + getSn(), "effective_start_time[#]": "NOW()", "effective_end_time": "2022-10-01 23:59:59", diff --git a/example/app/vip_order.go b/example/app/vip_order.go index 53bab79..000a772 100644 --- a/example/app/vip_order.go +++ b/example/app/vip_order.go @@ -159,6 +159,7 @@ var VipOrderCtr = Ctr{ //user_id := that.Session("user_id").Data data2 := Map{ "user_id": that.Session("user_id").Data, + "coupon_id": 1, "code_no": "SN" + time.Now().Format("20060102150405") + getSn(), "effective_start_time[#]": "NOW()", "effective_end_time": "2022-10-01 23:59:59", @@ -168,6 +169,9 @@ var VipOrderCtr = Ctr{ } for n := 0; n < 10; n++ { that.Db.Insert("coupon_user", data2) + //fmt.Println(that.Db.LastQuery) + //fmt.Println(that.Db.LastData) + //fmt.Println(that.Db.LastErr) } return