|
@@ -72,7 +72,7 @@ func HisManagerApiRegistRouters() {
|
72
|
72
|
}
|
73
|
73
|
|
74
|
74
|
func (c *HisApiController) TestPay() {
|
75
|
|
- DllDef := syscall.MustLoadDLL("SSSE32.dll")
|
|
75
|
+ DllDef := syscall.MustLoadDLL("SSCard.dll")
|
76
|
76
|
readCard := DllDef.MustFindProc("BankTrans")
|
77
|
77
|
inputData := make(map[string]interface{})
|
78
|
78
|
inputData["transId"] = "05"
|
|
@@ -83,6 +83,8 @@ func (c *HisApiController) TestPay() {
|
83
|
83
|
bytes_arr, _ := json.Marshal(inputData)
|
84
|
84
|
str := make([]byte, 256)
|
85
|
85
|
ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&bytes_arr[0])), (uintptr)(unsafe.Pointer(&str[0])))
|
|
86
|
+ fmt.Println(":", str)
|
|
87
|
+
|
86
|
88
|
if err2 != nil {
|
87
|
89
|
fmt.Println("SSCard的运算结果为:", ret2)
|
88
|
90
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
|