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
5ced1b27
Commit
5ced1b27
authored
Jul 29, 2016
by
usual2970
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
勾子回调测试
parent
50bf2f33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
git.go
service/controllers/git.go
+7
-3
No files found.
service/controllers/git.go
View file @
5ced1b27
...
@@ -4,7 +4,7 @@ import (
...
@@ -4,7 +4,7 @@ import (
"github.com/astaxie/beego"
"github.com/astaxie/beego"
//"github.com/usual2970/util/git-module"
//"github.com/usual2970/util/git-module"
"github.com/astaxie/beego/logs"
"github.com/astaxie/beego/logs"
//
"github.com/pquerna/ffjson/ffjson"
"github.com/pquerna/ffjson/ffjson"
)
)
type
GitController
struct
{
type
GitController
struct
{
...
@@ -30,9 +30,13 @@ type PData struct{
...
@@ -30,9 +30,13 @@ 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
(
string
(
c
.
Ctx
.
Input
.
RequestBody
))
pc
:=
c
.
Ctx
.
Input
.
RequestBody
log
.
Info
(
string
(
pc
))
ffjson
.
Unmarshal
(
pc
,
resp
)
log
.
Info
(
resp
.
HookName
)
// str:=`{
// str:=`{
// "password": "hod20x4hnkecy63",
// "password": "hod20x4hnkecy63",
// "hook_name": "push_hooks",
// "hook_name": "push_hooks",
...
...
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