Browse Source

update

tags/v1.1.0
DengBiao 2 years ago
parent
commit
75997d62fb
1 changed files with 7 additions and 18 deletions
  1. +7
    -18
      pay/pay_test.go

+ 7
- 18
pay/pay_test.go View File

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

Loading…
Cancel
Save