|
@@ -10,6 +10,7 @@ import (
|
10
|
10
|
"github.com/qiniu/api.v7/auth/qbox"
|
11
|
11
|
"github.com/qiniu/api.v7/storage"
|
12
|
12
|
"os"
|
|
13
|
+ "os/exec"
|
13
|
14
|
"strconv"
|
14
|
15
|
"time"
|
15
|
16
|
)
|
|
@@ -58,13 +59,13 @@ func call_yh_hb_call() {
|
58
|
59
|
// "opter_type":"1"
|
59
|
60
|
//}`
|
60
|
61
|
//service.Gdyb1201( )
|
61
|
|
- //cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1201", json1, json2)
|
62
|
|
- //out, err := cmd.Output()
|
63
|
|
- //if err != nil {
|
64
|
|
- // fmt.Println("error:", err.Error())
|
65
|
|
- //}
|
66
|
|
- //fmt.Printf("call yh_hb_call %q\n", string(out))
|
67
|
|
- //fmt.Printf(json2)
|
|
62
|
+ cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1201", json1, json2)
|
|
63
|
+ out, err := cmd.Output()
|
|
64
|
+ if err != nil {
|
|
65
|
+ fmt.Println("error:", err.Error())
|
|
66
|
+ }
|
|
67
|
+ fmt.Printf("call yh_hb_call %q\n", string(out))
|
|
68
|
+ fmt.Printf(json2)
|
68
|
69
|
}
|
69
|
70
|
|
70
|
71
|
func main() {
|