Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 years ago
parent
commit
220b545de5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/nm/nm_controller.go

+ 2 - 2
controllers/nm/nm_controller.go View File

800
 
800
 
801
 	bytesData, _ := json.Marshal(input)
801
 	bytesData, _ := json.Marshal(input)
802
 	//gdyb_url := beego.AppConfig.String("gdyb_url")
802
 	//gdyb_url := beego.AppConfig.String("gdyb_url")
803
-
803
+	fmt.Println(string(bytesData))
804
 	url := "http://10.38.22.15:8081" + "/localcfc/api/hsecfc/localQrCodeQuery"
804
 	url := "http://10.38.22.15:8081" + "/localcfc/api/hsecfc/localQrCodeQuery"
805
-	ret2, _, _ := readCard.Call(StrPtr(url), StrPtr(string(bytesData)), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
805
+	ret2, _, _ := readCard.Call(StrPtr(url), (uintptr)(unsafe.Pointer(&bytesData[0])), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
806
 	fmt.Println(ret2)
806
 	fmt.Println(ret2)
807
 	fmt.Println(DeleteExtraSpace(string(pBusiCardInfo)))
807
 	fmt.Println(DeleteExtraSpace(string(pBusiCardInfo)))
808
 	fmt.Println(":", ConvertToString(DeleteExtraSpace(string(pBusiCardInfo)), "gbk", "utf-8"))
808
 	fmt.Println(":", ConvertToString(DeleteExtraSpace(string(pBusiCardInfo)), "gbk", "utf-8"))