|
@@ -555,11 +555,10 @@ func (c *JSybController) GetBasBaseInfo() (string, string) {
|
555
|
555
|
pBusiCardInfo := make([]byte, 8192)
|
556
|
556
|
ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&pCardInfo[0])), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
|
557
|
557
|
fmt.Println(ret2)
|
558
|
|
- str = strings.Replace(str, " ", "", -1)
|
559
|
|
- fmt.Println(string(strings.Replace(string(pCardInfo), " ", "", -1)))
|
560
|
|
- fmt.Println(string(strings.Replace(string(str), " ", "", -1)))
|
561
|
|
- fmt.Println(":", ConvertToString(string(str1), "gbk", "utf-8"))
|
562
|
|
- fmt.Println(":", ConvertToString(string(str), "gbk", "utf-8"))
|
|
558
|
+ fmt.Println(DeleteExtraSpace(string(pCardInfo)))
|
|
559
|
+ fmt.Println(DeleteExtraSpace(string(pBusiCardInfo)))
|
|
560
|
+ fmt.Println(":", ConvertToString(DeleteExtraSpace(string(pCardInfo)), "gbk", "utf-8"))
|
|
561
|
+ fmt.Println(":", ConvertToString(DeleteExtraSpace(string(pBusiCardInfo)), "gbk", "utf-8"))
|
563
|
562
|
if ret2 != 0 {
|
564
|
563
|
return "", ""
|
565
|
564
|
}
|