Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
util
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘旋尧
util
Commits
115ccfd2
Commit
115ccfd2
authored
Jul 29, 2016
by
usual2970
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
钩子测试
parent
5ced1b27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
git.go
service/controllers/git.go
+2
-1
test.log
service/test.log
+10
-0
No files found.
service/controllers/git.go
View file @
115ccfd2
...
...
@@ -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
)
...
...
service/test.log
View file @
115ccfd2
...
...
@@ -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]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment