|
@@ -37,7 +37,6 @@ import (
|
37
|
37
|
"net/http"
|
38
|
38
|
"os"
|
39
|
39
|
"path/filepath"
|
40
|
|
- "runtime"
|
41
|
40
|
_ "runtime/cgo"
|
42
|
41
|
"strconv"
|
43
|
42
|
"strings"
|
|
@@ -83,7 +82,7 @@ func (c *HisApiController) TestPay() {
|
83
|
82
|
inputData["id"] = "44022919620927046X"
|
84
|
83
|
bytes_arr, _ := json.Marshal(inputData)
|
85
|
84
|
str := make([]byte, 256)
|
86
|
|
- ret2, _, err2 := readCard.Call(bytes_arr, (uintptr)(unsafe.Pointer(&str[0])))
|
|
85
|
+ ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&bytes_arr[0])), (uintptr)(unsafe.Pointer(&str[0])))
|
87
|
86
|
if err2 != nil {
|
88
|
87
|
fmt.Println("SSCard的运算结果为:", ret2)
|
89
|
88
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
|