|
@@ -784,7 +784,7 @@ func (c *NmController) GetELeInfo(code string, operator_id string, operator_name
|
784
|
784
|
readCard := DllDef.MustFindProc("NationEcTrans")
|
785
|
785
|
fmt.Println(readCard)
|
786
|
786
|
fmt.Println("!!!!!")
|
787
|
|
- pBusiCardInfo := make([]byte, 8192)
|
|
787
|
+ pBusiCardInfo := make([]byte, 2048)
|
788
|
788
|
input := make(map[string]interface{})
|
789
|
789
|
inputData := make(map[string]interface{})
|
790
|
790
|
inputData["orgId"] = code
|
|
@@ -802,7 +802,10 @@ func (c *NmController) GetELeInfo(code string, operator_id string, operator_name
|
802
|
802
|
//gdyb_url := beego.AppConfig.String("gdyb_url")
|
803
|
803
|
fmt.Println(string(bytesData))
|
804
|
804
|
url := "http://10.38.22.15:8081" + "/localcfc/api/hsecfc/localQrCodeQuery"
|
805
|
|
- ret2, _, _ := readCard.Call(StrPtr(url), (uintptr)(unsafe.Pointer(&bytesData[0])), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
|
|
805
|
+ ret2, aa, bb := readCard.Call(StrPtr(url), (uintptr)(unsafe.Pointer(&bytesData[0])), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
|
|
806
|
+ fmt.Println(aa)
|
|
807
|
+ fmt.Println(bb)
|
|
808
|
+
|
806
|
809
|
fmt.Println(ret2)
|
807
|
810
|
fmt.Println(DeleteExtraSpace(string(pBusiCardInfo)))
|
808
|
811
|
fmt.Println(":", ConvertToString(DeleteExtraSpace(string(pBusiCardInfo)), "gbk", "utf-8"))
|