csx 4 years ago
parent
commit
223f50a1bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/sg/his_api_controller.go

+ 1 - 1
controllers/sg/his_api_controller.go View File

110
 	s2 := []byte(string(str) + "\x00")
110
 	s2 := []byte(string(str) + "\x00")
111
 	s3 := []byte(string(str1) + "\x00")
111
 	s3 := []byte(string(str1) + "\x00")
112
 
112
 
113
-	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&s2[1])), IntPtr(1024), (uintptr)(unsafe.Pointer(&s3[1])), IntPtr(1024))
113
+	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&s2[255])), IntPtr(1024), (uintptr)(unsafe.Pointer(&s3[255])), IntPtr(1024))
114
 	fmt.Println(" Add(4,5)的结果为:", ret2)
114
 	fmt.Println(" Add(4,5)的结果为:", ret2)
115
 	fmt.Println(" str:", s2)
115
 	fmt.Println(" str:", s2)
116
 	fmt.Println(" str1:", s3)
116
 	fmt.Println(" str1:", s3)