csx 4 年之前
父節點
當前提交
a16457bc60
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      controllers/sg/his_api_controller.go

+ 3 - 3
controllers/sg/his_api_controller.go 查看文件

@@ -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
 	//	fmt.Println("readcard reload  is nil")
98 98
 	//	return
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)