From 75997d62fb7b5239b107b2533ebcbc76578544c3 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 30 May 2022 16:15:26 +0800 Subject: [PATCH] update --- pay/pay_test.go | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/pay/pay_test.go b/pay/pay_test.go index 5ecbc15..4917fd6 100644 --- a/pay/pay_test.go +++ b/pay/pay_test.go @@ -1,30 +1,19 @@ package pay import ( + "fmt" "testing" ) func TestPay(t *testing.T) { + err := Init("119.23.182.117:3306", "zyos_website", "root", "Fnuo123com@") + if err != nil { + t.Errorf("Reverse == %s", err) + } channel, err := JudgePayChannel("35618318", "mall") if err != nil { t.Errorf("Reverse == %s", err) } - - t.Log(channel.Identifier) -} -func TestPayConfig(t *testing.T) { - //args := map[string]string{ - // "app_id": "", - // "private_key": "", - // "subject": "哈哈哈", - // "ord_id": "1", - // "amount": "1", - // "notify_url": "", - // "rsa": "0", - // "pkcs": "0", - // "pay_ali_use_type": "0", - // "wx_applet_filepath_url": "", - // "platform": "ios", - //} - //Alipay(args) + fmt.Println(channel.AppId) + t.Log(channel.MasterNickname) }