Commit 87d01a42 by usual2970

勾子回调测试

parent 45d9d41c
...@@ -30,9 +30,9 @@ type PData struct{ ...@@ -30,9 +30,9 @@ type PData struct{
* @return {[type]} [description] * @return {[type]} [description]
*/ */
func (c *GitController) Hook() { func (c *GitController) Hook() {
resp:=&HookInfo{} //resp:=&HookInfo{}
ffjson.Unmarshal(c.Ctx.Input.RequestBody,resp) //ffjson.Unmarshal(c.Ctx.Input.RequestBody,resp)
log.Info(resp.HookName) log.Info(string(c.Ctx.Input.RequestBody))
// str:=`{ // str:=`{
// "password": "hod20x4hnkecy63", // "password": "hod20x4hnkecy63",
// "hook_name": "push_hooks", // "hook_name": "push_hooks",
......
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