Browse Source

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

csx 4 years ago
parent
commit
87d431ba5c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      controllers/sg/his_api_controller.go

+ 2 - 1
controllers/sg/his_api_controller.go View File

@@ -447,7 +447,8 @@ func GetBasBaseInfo() (jsonStr string, err error) {
447 447
 	str := make([]byte, 1024)
448 448
 	str1 := make([]byte, 1024)
449 449
 	ret, _, _ := add.Call((uintptr)(unsafe.Pointer(&str[0])), IntPtr(1024), (uintptr)(unsafe.Pointer(&str1[0])), IntPtr(1024))
450
-	fmt.Println(string(str))
450
+	fmt.Println(ConvertToString(string(str), "gbk", "utf-8"))
451
+
451 452
 	fmt.Println(ConvertToString(string(str1), "gbk", "utf-8"))
452 453
 
453 454
 	fmt.Println("> Add(4,5)的结果为:", ret)