|
@@ -3,6 +3,8 @@ package game
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
+ "io/ioutil"
|
|
|
+ "net/http"
|
|
|
"ordonnance/common/auth"
|
|
|
"ordonnance/common/db"
|
|
|
"ordonnance/common/util"
|
|
@@ -112,6 +114,16 @@ func ServerList(c *gin.Context) {
|
|
|
c.JSON(200, retData)
|
|
|
}
|
|
|
|
|
|
+func RecordAction(c *gin.Context) {
|
|
|
+ appId := c.PostForm("appId")
|
|
|
+ appSecret := c.PostForm("appSecret")
|
|
|
+ data := c.PostForm("data")
|
|
|
+ body, _ := ioutil.ReadAll(c.Request.Body)
|
|
|
+ // 验证参数
|
|
|
+ logger.Info("log", appId, appSecret, data, string(body))
|
|
|
+ c.JSON(http.StatusOK, response.NewMessage(response.OK))
|
|
|
+}
|
|
|
+
|
|
|
func GetGate(c *gin.Context) {
|
|
|
tokenData, err := util.ParseToken(c.PostForm("token"))
|
|
|
if err != nil {
|