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