|
@@ -17,6 +17,7 @@ import (
|
17
|
17
|
"mime/multipart"
|
18
|
18
|
"net/http"
|
19
|
19
|
"os"
|
|
20
|
+ "os/exec"
|
20
|
21
|
"path/filepath"
|
21
|
22
|
"strconv"
|
22
|
23
|
"strings"
|
|
@@ -81,13 +82,13 @@ func Gdyb1201(certNo string, org_name string, doctor string, fixmedins_code stri
|
81
|
82
|
|
82
|
83
|
ole.CoUninitialize()
|
83
|
84
|
|
84
|
|
- //cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1201", string(bytesData), json2)
|
85
|
|
- //out, err := cmd.Output()
|
86
|
|
- //if err != nil {
|
87
|
|
- // fmt.Println("error:", err.Error())
|
88
|
|
- //}
|
89
|
|
- //fmt.Printf("call yh_hb_call %q\n", string(out))
|
90
|
|
- //fmt.Printf(json2)
|
|
85
|
+ cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1201", string(bytesData), json2)
|
|
86
|
+ out, err := cmd.Output()
|
|
87
|
+ if err != nil {
|
|
88
|
+ fmt.Println("error:", err.Error())
|
|
89
|
+ }
|
|
90
|
+ fmt.Printf("call yh_hb_call %q\n", string(out))
|
|
91
|
+ fmt.Printf(json2)
|
91
|
92
|
|
92
|
93
|
//DllDef := syscall.MustLoadDLL("yh_hb_sctrl.dll")
|
93
|
94
|
//Iinit := DllDef.MustFindProc("DllGetClassObject")
|