csx 4 年前
父节点
当前提交
696f554527
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      controllers/sg/his_api_controller.go

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

@@ -103,14 +103,14 @@ func (c *HisApiController) TestGetBasBaseInfo() {
103 103
 	//bytePath2 := []byte(  "\x00")
104 104
 	//ssss
105 105
 
106
-	str := make([]byte, 256)
106
+	str := make([]byte, 10240)
107 107
 
108
-	str1 := make([]byte, 256)
108
+	str1 := make([]byte, 10240)
109 109
 
110 110
 	s2 := []byte(string(str) + "\x00")
111 111
 	s3 := []byte(string(str1) + "\x00")
112 112
 
113
-	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&s2[0])), IntPtr(10240), (uintptr)(unsafe.Pointer(&s3[0])), IntPtr(10240))
113
+	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&s2[0])), IntPtr(256), (uintptr)(unsafe.Pointer(&s3[0])), IntPtr(256))
114 114
 	fmt.Println(" Add(4,5)的结果为:", ret2)
115 115
 	fmt.Println(" str:", s2)
116 116
 	fmt.Println(" str1:", s3)