Commit 2078ddfd by usual2970

钩子测试

parent 115ccfd2
......@@ -5,7 +5,6 @@ import (
//"github.com/usual2970/util/git-module"
"github.com/astaxie/beego/logs"
"github.com/pquerna/ffjson/ffjson"
"io/ioutil"
)
type GitController struct {
......@@ -33,7 +32,7 @@ type PData struct{
func (c *GitController) Hook() {
resp:=&HookInfo{}
//ffjson.Unmarshal(c.Ctx.Input.RequestBody,resp)
pc,_:=ioutil.ReadAll(c.Ctx.Request.Body)
pc:=c.Ctx.Input.RequestBody
log.Info(string(pc))
ffjson.Unmarshal(pc,resp)
......
......@@ -2035,3 +2035,31 @@ index 3fd94c7..da99ca0 100644
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:32:52 [I]
2016/07/29 12:32:52 [I]
2016/07/29 12:32:54 [I]
2016/07/29 12:32:54 [I]
2016/07/29 12:32:55 [I]
2016/07/29 12:32:55 [I]
2016/07/29 12:33:48 [I]
2016/07/29 12:33:48 [I]
2016/07/29 12:33:56 [I]
2016/07/29 12:33:56 [I]
2016/07/29 12:33:56 [I]
2016/07/29 12:33:56 [I]
2016/07/29 12:33:56 [I]
2016/07/29 12:33:56 [I]
2016/07/29 12:33:57 [I]
2016/07/29 12:33:57 [I]
2016/07/29 12:34:17 [I] asdfasdfadfasdfadfadf
2016/07/29 12:34:17 [I]
2016/07/29 12:34:18 [I] asdfasdfadfasdfadfadf
2016/07/29 12:34:18 [I]
2016/07/29 12:35:19 [I] asdfasdfadfasdfadfadf
2016/07/29 12:35:19 [I]
2016/07/29 12:35:20 [I] asdfasdfadfasdfadfadf
2016/07/29 12:35:20 [I]
2016/07/29 12:35:45 [I] asdfasdfadfasdfadfadf
2016/07/29 12:35:45 [I]
2016/07/29 12:35:46 [I] asdfasdfadfasdfadfadf
2016/07/29 12:35:46 [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