From 2a4914b739389f32928ad3a633a35d566d3c16b6 Mon Sep 17 00:00:00 2001 From: guzeng Date: Wed, 14 Dec 2022 10:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=84=E7=BA=A6=E6=A0=B8?= =?UTF-8?q?=E9=94=80=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- verify.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/verify.go b/verify.go index 8c9ffe0..eacadc0 100644 --- a/verify.go +++ b/verify.go @@ -11,10 +11,15 @@ import ( ) type OrderVerifyRes struct { - Result bool + Result bool + OrderRow map[string]string } -func VerifyByBooking(dbname, site_id string, data map[string]string, url ...string) (*OrderVerifyRes, error) { +/* + * 按核销码/用户ID核销订单 + * data map[string]string{"verify_code":"","user_id":""}, 二选一 + */ +func VerifyByBooking(dbname, site_id string, data map[string]string, url ...string) (OrderVerifyRes, error) { var order_rpc_url string = "127.0.0.1:7973" if len(url) > 0 && url[0] != "" { @@ -70,6 +75,6 @@ func VerifyByBooking(dbname, site_id string, data map[string]string, url ...stri return nil, err } - return &res_arr, nil + return res_arr, nil }