|
@@ -55,8 +55,8 @@ func HisManagerApiRegistRouters() {
|
55
|
55
|
}
|
56
|
56
|
|
57
|
57
|
var (
|
58
|
|
- str = make([]byte, 256)
|
59
|
|
- str1 = make([]byte, 256)
|
|
58
|
+ str = make([]*byte, 1024)
|
|
59
|
+ str1 = make([]*byte, 1024)
|
60
|
60
|
)
|
61
|
61
|
|
62
|
62
|
func (c *HisApiController) TestPay() {
|
|
@@ -97,7 +97,7 @@ func (c *HisApiController) TestGetBasBaseInfo() {
|
97
|
97
|
|
98
|
98
|
|
99
|
99
|
|
100
|
|
- ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&str)), IntPtr(1024), (uintptr)(unsafe.Pointer(&str1)), IntPtr(1024))
|
|
100
|
+ ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(str[0])), IntPtr(1024), (uintptr)(unsafe.Pointer(str1[0])), IntPtr(1024))
|
101
|
101
|
fmt.Println(" Add(4,5)的结果为:", ret2)
|
102
|
102
|
fmt.Println(" str:", str)
|
103
|
103
|
fmt.Println(" str1:", str1)
|