|
@@ -1,6 +1,7 @@
|
1
|
1
|
package sg
|
2
|
2
|
|
3
|
3
|
import (
|
|
4
|
+ "C"
|
4
|
5
|
"archive/zip"
|
5
|
6
|
"bytes"
|
6
|
7
|
"encoding/json"
|
|
@@ -84,7 +85,7 @@ func (c *HisApiController) TestGetBasBaseInfo() {
|
84
|
85
|
str1 = nil
|
85
|
86
|
str = make([]byte, 256)
|
86
|
87
|
str1 = make([]byte, 256)
|
87
|
|
- ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), IntPtr(256), (uintptr)(unsafe.Pointer(&str1[0])), IntPtr(256))
|
|
88
|
+ ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), 0, (uintptr)(unsafe.Pointer(&str1[0])), 0)
|
88
|
89
|
fmt.Println(" Add(4,5)的结果为:", ret2)
|
89
|
90
|
fmt.Println(" str:", str)
|
90
|
91
|
fmt.Println(" str1:", str1)
|