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

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

@@ -108,7 +108,7 @@ func (c *HisApiController) TestGetBasBaseInfo() {
108 108
 	s2 := []byte(string(str) + "\x00")
109 109
 	s3 := []byte(string(str1) + "\x00")
110 110
 
111
-	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&s2[0])), IntPtr(1024), (uintptr)(unsafe.Pointer(&s3[0])), IntPtr(1024))
111
+	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&s2[1])), IntPtr(1024), (uintptr)(unsafe.Pointer(&s3[1])), IntPtr(1024))
112 112
 	fmt.Println(" Add(4,5)的结果为:", ret2)
113 113
 	fmt.Println(" str:", s2)
114 114
 	fmt.Println(" str1:", s3)