|
|
|
|
508
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
|
508
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
|
509
|
return
|
509
|
return
|
510
|
}
|
510
|
}
|
|
|
511
|
+ fmt.Println("SSCard的返回结果为:", string(str))
|
511
|
|
512
|
|
512
|
result := int(ret)
|
513
|
result := int(ret)
|
513
|
fmt.Println("SSCard的运算结果为1:", result)
|
514
|
fmt.Println("SSCard的运算结果为1:", result)
|
|
|
|
|
521
|
fmt.Println("readcard is nil")
|
522
|
fmt.Println("readcard is nil")
|
522
|
readCard = DllDef.MustFindProc("ReadCardBas")
|
523
|
readCard = DllDef.MustFindProc("ReadCardBas")
|
523
|
}
|
524
|
}
|
|
|
525
|
+ fmt.Println("!!!!!")
|
524
|
str := make([]byte, 2048)
|
526
|
str := make([]byte, 2048)
|
525
|
str1 := make([]byte, 8192)
|
527
|
str1 := make([]byte, 8192)
|
526
|
ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), uintptr(1024), (uintptr)(unsafe.Pointer(&str1[0])), uintptr(1024))
|
528
|
ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), uintptr(1024), (uintptr)(unsafe.Pointer(&str1[0])), uintptr(1024))
|