Commit 3e90d181 by zhengqiuyun86

初始化

parent 3c8c5de2
...@@ -116,3 +116,15 @@ func GetStartTime(c *gin.Context) int64 { ...@@ -116,3 +116,15 @@ func GetStartTime(c *gin.Context) int64 {
func logStart(c *gin.Context) { func logStart(c *gin.Context) {
log.Info(fmt.Sprintf("开始 %s %s %s %s", GetMethod(c), GetURL(c), GetToken(c), GetClientIP(c))) log.Info(fmt.Sprintf("开始 %s %s %s %s", GetMethod(c), GetURL(c), GetToken(c), GetClientIP(c)))
} }
func GetAppId(c *gin.Context) string {
return c.GetHeader("appId")
}
func GetTimeStamp(c *gin.Context) string {
return c.GetHeader("timeStamp")
}
func GetSign(c *gin.Context) string {
return c.GetHeader("sign")
}
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