|
@@ -229,13 +229,12 @@ func (c *HisApiController) GetBasBaseInfo() string {
|
229
|
229
|
|
230
|
230
|
str := make([]byte, 1024)
|
231
|
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, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), uintptr(1024), (uintptr)(unsafe.Pointer(&str1[0])), uintptr(1024))
|
233
|
233
|
|
234
|
234
|
fmt.Println(string(str1))
|
235
|
235
|
fmt.Println(string(str))
|
236
|
236
|
|
237
|
|
- if err2 != nil {
|
238
|
|
- fmt.Println("SSCard的运算结果为:", ret2)
|
|
237
|
+ if ret2 != nil {
|
239
|
238
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
|
240
|
239
|
return ""
|
241
|
240
|
}
|