Commit 7e27bf78 by Li Feifei

test

parent e47a952d
Pipeline #13608 passed with stages
in 29 seconds
......@@ -9,6 +9,7 @@ package routers
import (
"encoding/json"
"fmt"
"ppt_server/controllers"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego"
......@@ -21,6 +22,8 @@ func init() {
beego.Post("/file/callback", func(ctx *context.Context) {
var mapFiles map[string]interface{}
var err error
fmt.Println("body === ", ctx.Input.RequestBody)
if err = json.Unmarshal(ctx.Input.RequestBody, &mapFiles); err != nil {
ctx.WriteString("Error " + err.Error())
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment