|
@@ -11,6 +11,7 @@ import (
|
11
|
11
|
"github.com/astaxie/beego"
|
12
|
12
|
"github.com/axgle/mahonia"
|
13
|
13
|
"io/ioutil"
|
|
14
|
+ "strings"
|
14
|
15
|
"syscall"
|
15
|
16
|
"unsafe"
|
16
|
17
|
)
|
|
@@ -527,8 +528,9 @@ func (c *JSybController) GetBasBaseInfo() string {
|
527
|
528
|
str1 := make([]byte, 8192)
|
528
|
529
|
ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), (uintptr)(unsafe.Pointer(&str1[0])))
|
529
|
530
|
fmt.Println(ret2)
|
530
|
|
- fmt.Println(string(str1))
|
531
|
|
- fmt.Println(string(str))
|
|
531
|
+ //str = strings.Replace(str, " ", "", -1)
|
|
532
|
+ fmt.Println(string(strings.Replace(string(str1), " ", "", -1)))
|
|
533
|
+ fmt.Println(string(strings.Replace(string(str), " ", "", -1)))
|
532
|
534
|
fmt.Println(":", ConvertToString(string(str1), "gbk", "utf-8"))
|
533
|
535
|
fmt.Println(":", ConvertToString(string(str), "gbk", "utf-8"))
|
534
|
536
|
if ret2 != 0 {
|