互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
536 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. package test
  2. import (
  3. "fmt"
  4. pay_service "hudongzhuanjia/services/pay"
  5. "testing"
  6. )
  7. var openId = "o9XM41s_NN8Y0QK6_MbM-aYMV3TE"
  8. func TestTransfer(t *testing.T) {
  9. res, err := pay_service.Transfer("欧轩互动-转账测试", "127.0.0.1", openId, 0.30*100)
  10. fmt.Println(err)
  11. fmt.Printf("%+v\n", res)
  12. }
  13. func TestSendRedPack(t *testing.T) {
  14. res, err := pay_service.SendRedPack("欧轩互动-红包测试", openId, "你好测试", "192.168.1.103", "tommy",
  15. "哈哈哈哈哈", 1, 1, 1)
  16. fmt.Println(err)
  17. fmt.Printf("%+v\n", res)
  18. }