|
|
@ -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 |
|
|
|
|
|
|
|
} |