|
|
@ -21,9 +21,9 @@ func dbGet() *common.DB { |
|
|
return common.DbGet(config.Mysql) |
|
|
return common.DbGet(config.Mysql) |
|
|
} |
|
|
} |
|
|
func writeTransLog(gid string, action string, status string, branch string, detail string) { |
|
|
func writeTransLog(gid string, action string, status string, branch string, detail string) { |
|
|
if detail == "" { |
|
|
// if detail == "" {
|
|
|
detail = "{}" |
|
|
// detail = "{}"
|
|
|
} |
|
|
// }
|
|
|
// dbGet().Must().Table("trans_log").Create(M{
|
|
|
// dbGet().Must().Table("trans_log").Create(M{
|
|
|
// "gid": gid,
|
|
|
// "gid": gid,
|
|
|
// "action": action,
|
|
|
// "action": action,
|
|
|
|