From 75b8ff4c6fdb27beb0637e2ae7d200934bdec1cd Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 14 Feb 2023 14:21:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lianlian/api.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lianlian/api.go b/lianlian/api.go index 42017bf..b92a5f1 100644 --- a/lianlian/api.go +++ b/lianlian/api.go @@ -168,6 +168,23 @@ func CreateOrder(params map[string]string) string { encryptedData := CommEncryptedData(send) return encryptedData } +func CheckCreateOrder(params map[string]string) string { + args := map[string]interface{}{} + for k, v := range params { + if v != "" { + args[k] = v + } + } + tmp := zhios_third_party_utils.SerializeStr(args) + fmt.Println(tmp) + send, err := Send("channelOrder/checkCreateOrder", tmp) + if err != nil || gjson.Get(send, "code").Int() != 200 { + fmt.Println(send) + return "" + } + encryptedData := CommEncryptedData(send) + return encryptedData +} //订单详情 func OrderDetail(params map[string]string) string {