|
@@ -140,6 +140,24 @@ func (c *HisApiController) TestGetBasBaseInfo() {
|
140
|
140
|
return
|
141
|
141
|
}
|
142
|
142
|
|
|
143
|
+ readCards := DllDef.MustFindProc("BankTrans")
|
|
144
|
+ inputData := make(map[string]interface{})
|
|
145
|
+ inputData["transId"] = "05"
|
|
146
|
+ inputData["amount"] = "0.01"
|
|
147
|
+ inputData["traceNo"] = "1122233444455555"
|
|
148
|
+ inputData["cardNo"] = "F36084348"
|
|
149
|
+ inputData["id"] = "44022919620927046X"
|
|
150
|
+ bytes_arr, _ := json.Marshal(inputData)
|
|
151
|
+ str3 := make([]byte, 256)
|
|
152
|
+ ret4, _, err4 := readCards.Call((uintptr)(unsafe.Pointer(&bytes_arr)), (uintptr)(unsafe.Pointer(&str[0])))
|
|
153
|
+ fmt.Println(":", string(str3))
|
|
154
|
+
|
|
155
|
+ if err4 != nil {
|
|
156
|
+ fmt.Println("SSCard的运算结果为:", ret4)
|
|
157
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
|
|
158
|
+ return
|
|
159
|
+ }
|
|
160
|
+
|
143
|
161
|
}
|
144
|
162
|
|
145
|
163
|
func (c *HisApiController) GetOrgInfo() {
|