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