Browse Source

修改预约核销方法

master v0.3.2
guzeng 1 year ago
parent
commit
2a4914b739
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      verify.go

+ 8
- 3
verify.go View File

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

Loading…
Cancel
Save