|
@@ -8,7 +8,6 @@ import (
|
8
|
8
|
"fmt"
|
9
|
9
|
"github.com/astaxie/beego"
|
10
|
10
|
"io/ioutil"
|
11
|
|
- "unsafe"
|
12
|
11
|
)
|
13
|
12
|
|
14
|
13
|
type GdybController struct {
|
|
@@ -412,11 +411,11 @@ func (c *GdybController) PostEleven() {
|
412
|
411
|
Doctor: doctor,
|
413
|
412
|
}
|
414
|
413
|
|
415
|
|
- x := (*[2]uintptr)(unsafe.Pointer(&file_byte))
|
416
|
|
- h := [3]uintptr{x[0], x[1], x[1]}
|
417
|
|
- bytes := *(*[]byte)(unsafe.Pointer(&h))
|
|
414
|
+ //x := (*[2]uintptr)(unsafe.Pointer(&file_byte))
|
|
415
|
+ //h := [3]uintptr{x[0], x[1], x[1]}
|
|
416
|
+ //bytes := *(*[]byte)(unsafe.Pointer(&h))
|
418
|
417
|
|
419
|
|
- result := service.Gdyb9101(baseParams, file_name, bytes)
|
|
418
|
+ result := service.Gdyb9101(baseParams, file_name, []byte(file_byte))
|
420
|
419
|
var dat map[string]interface{}
|
421
|
420
|
if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
422
|
421
|
fmt.Println(dat)
|