Kaynağa Gözat

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

csx 3 yıl önce
ebeveyn
işleme
b718ac7929
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      service/gdyb_service.go

+ 3 - 2
service/gdyb_service.go Dosyayı Görüntüle

@@ -70,15 +70,16 @@ func Gdyb1201(certNo string, org_name string, doctor string, fixmedins_code stri
70 70
 	//str1 := make([]byte, 256)
71 71
 	//r, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), IntPtr(1024), (uintptr)(unsafe.Pointer(&str1[0])), IntPtr(1024))
72 72
 
73
-	result, _ := oleutil.CallMethod(xmlhttp, "yh_hb_call", "1201", StrPtr(string(bytesData)), StrPtr(str3))
73
+	result, _ := oleutil.CallMethod(xmlhttp, "yh_hb_call", "1201", string(bytesData), str3)
74 74
 
75 75
 	fmt.Println(str3)
76 76
 	fmt.Println("~~~~~~~~")
77 77
 	fmt.Println(result)
78 78
 	fmt.Println(result.ToString())
79 79
 	fmt.Println(result.Value())
80
-
81 80
 	fmt.Println("~~~~~~~~")
81
+	xmlhttp.Release()
82
+	ole.CoUninitialize()
82 83
 	//fmt.Println("~~~~~~~~")
83 84
 	//fmt.Println(xmlhttp)
84 85
 	//fmt.Println("~~~~~~~~")