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
22 lines
536 B
package test
|
|
|
|
import (
|
|
"fmt"
|
|
pay_service "hudongzhuanjia/services/pay"
|
|
"testing"
|
|
)
|
|
|
|
var openId = "o9XM41s_NN8Y0QK6_MbM-aYMV3TE"
|
|
|
|
func TestTransfer(t *testing.T) {
|
|
res, err := pay_service.Transfer("欧轩互动-转账测试", "127.0.0.1", openId, 0.30*100)
|
|
fmt.Println(err)
|
|
fmt.Printf("%+v\n", res)
|
|
}
|
|
|
|
func TestSendRedPack(t *testing.T) {
|
|
res, err := pay_service.SendRedPack("欧轩互动-红包测试", openId, "你好测试", "192.168.1.103", "tommy",
|
|
"哈哈哈哈哈", 1, 1, 1)
|
|
fmt.Println(err)
|
|
fmt.Printf("%+v\n", res)
|
|
}
|