|
@@ -762,7 +762,8 @@ func (c *JSybController) TestGetBasBaseInit(code string, secret_key string, ak s
|
762
|
762
|
inputData["PORT"] = "8086"
|
763
|
763
|
inputData["TIMEOUT"] = "180"
|
764
|
764
|
inputData["LOG_PATH"] = "C:\\log\\"
|
765
|
|
- inputData["EC_URL"] = "http://10.72.42.210:10081/localcfc/api/hsecfc/localQrCodeQuery"
|
|
765
|
+ //
|
|
766
|
+ inputData["EC_URL"] = "http://10.72.3.127:10086/localcfc/api/hsecfc/localQrCodeQuery"
|
766
|
767
|
inputData["CARD_PASSTYPE"] = "1"
|
767
|
768
|
inputData["API_NAME"] = "hssServives"
|
768
|
769
|
inputData["API_VERSION"] = "1.0.0"
|
|
@@ -814,7 +815,7 @@ func (c *JSybController) GetELeInfo(code string, operator_id string, operator_na
|
814
|
815
|
readCard := DllDef.MustFindProc("EcQuery")
|
815
|
816
|
fmt.Println(readCard)
|
816
|
817
|
fmt.Println("!!!!!")
|
817
|
|
- pCardInfo := make([]byte, 8192)
|
|
818
|
+ //pCardInfo := make([]byte, 8192)
|
818
|
819
|
pBusiCardInfo := make([]byte, 8192)
|
819
|
820
|
|
820
|
821
|
data := make(map[string]interface{})
|
|
@@ -832,8 +833,8 @@ func (c *JSybController) GetELeInfo(code string, operator_id string, operator_na
|
832
|
833
|
data["transType"] = "ec.query"
|
833
|
834
|
data["orgId"] = code
|
834
|
835
|
bytesData, _ := json.Marshal(data)
|
835
|
|
- pCardInfo = bytesData
|
836
|
|
- ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&pCardInfo[0])), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
|
|
836
|
+ //pCardInfo = bytesData
|
|
837
|
+ ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&bytesData[0])), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
|
837
|
838
|
fmt.Println(ret2)
|
838
|
839
|
fmt.Println(DeleteExtraSpace(string(bytesData)))
|
839
|
840
|
fmt.Println(DeleteExtraSpace(string(pBusiCardInfo)))
|