Commit 115ccfd2 by usual2970

钩子测试

parent 5ced1b27
......@@ -5,6 +5,7 @@ import (
//"github.com/usual2970/util/git-module"
"github.com/astaxie/beego/logs"
"github.com/pquerna/ffjson/ffjson"
"io/ioutil"
)
type GitController struct {
......@@ -32,7 +33,7 @@ type PData struct{
func (c *GitController) Hook() {
resp:=&HookInfo{}
//ffjson.Unmarshal(c.Ctx.Input.RequestBody,resp)
pc:=c.Ctx.Input.RequestBody
pc,_:=ioutil.ReadAll(c.Ctx.Request.Body)
log.Info(string(pc))
ffjson.Unmarshal(pc,resp)
......
......@@ -2025,3 +2025,13 @@ index 3fd94c7..da99ca0 100644
2016/07/29 10:44:39 [I]
2016/07/29 10:44:39 [I]
2016/07/29 10:44:39 [I]
2016/07/29 12:28:42 [I]
2016/07/29 12:28:42 [I]
2016/07/29 12:28:43 [I]
2016/07/29 12:28:43 [I]
2016/07/29 12:28:43 [I]
2016/07/29 12:28:43 [I]
2016/07/29 12:28:43 [I]
2016/07/29 12:28:43 [I]
2016/07/29 12:28:43 [I]
2016/07/29 12:28:43 [I]
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