|
@@ -788,7 +788,7 @@ func (c *JSybController) GetELeInfo(code string, operator_id string, operator_na
|
788
|
788
|
readCard := DllDef.MustFindProc("EcQuery")
|
789
|
789
|
fmt.Println(readCard)
|
790
|
790
|
fmt.Println("!!!!!")
|
791
|
|
- //pCardInfo := make([]byte, 8192)
|
|
791
|
+ pCardInfo := make([]byte, 8192)
|
792
|
792
|
pBusiCardInfo := make([]byte, 8192)
|
793
|
793
|
|
794
|
794
|
data := make(map[string]interface{})
|
|
@@ -807,7 +807,9 @@ func (c *JSybController) GetELeInfo(code string, operator_id string, operator_na
|
807
|
807
|
|
808
|
808
|
bytesData, _ := json.Marshal(data)
|
809
|
809
|
|
810
|
|
- ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&bytesData[0])), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
|
|
810
|
+ pCardInfo = bytesData
|
|
811
|
+
|
|
812
|
+ ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&pCardInfo[0])), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
|
811
|
813
|
fmt.Println(ret2)
|
812
|
814
|
fmt.Println(DeleteExtraSpace(string(bytesData)))
|
813
|
815
|
fmt.Println(DeleteExtraSpace(string(pBusiCardInfo)))
|