Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 years ago
parent
commit
dceef29027
1 changed files with 3 additions and 0 deletions
  1. 3 0
      controllers/sg/his_api_controller.go

+ 3 - 0
controllers/sg/his_api_controller.go View File

231
 	str1 := make([]byte, 1024)
231
 	str1 := make([]byte, 1024)
232
 	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), uintptr(1024), (uintptr)(unsafe.Pointer(&str1[0])), uintptr(1024))
232
 	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), uintptr(1024), (uintptr)(unsafe.Pointer(&str1[0])), uintptr(1024))
233
 
233
 
234
+	fmt.Println(string(str1))
235
+	fmt.Println(string(str))
236
+
234
 	if err2 != nil {
237
 	if err2 != nil {
235
 		fmt.Println("SSCard的运算结果为:", ret2)
238
 		fmt.Println("SSCard的运算结果为:", ret2)
236
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
239
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)