Commit 53d3f77bc90ea0fbc39909b83faad5bd43cfa485

Authored by 陆恒
1 parent 7dcada25
Exists in master

提交

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
src/HttpServer/logic/httpserver.go
@@ -35,6 +35,7 @@ func CheckErr(err error) { @@ -35,6 +35,7 @@ func CheckErr(err error) {
35 35
36 func startServerHttpServe() { 36 func startServerHttpServe() {
37 37
  38 + http.HandleFunc("/brainhole/test", TestDDT) //测试节后
38 //---------------------------------------------------------------------------------------- 39 //----------------------------------------------------------------------------------------
39 http.HandleFunc("/brainhole/userlogin", UserLogin) //登录 40 http.HandleFunc("/brainhole/userlogin", UserLogin) //登录
40 http.HandleFunc("/brainhole/syncuserdata", Syncuserdata) //同步完结数据 41 http.HandleFunc("/brainhole/syncuserdata", Syncuserdata) //同步完结数据
@@ -155,6 +156,15 @@ func Syncuserdata(w http.ResponseWriter, r *http.Request) { @@ -155,6 +156,15 @@ func Syncuserdata(w http.ResponseWriter, r *http.Request) {
155 HandlerSyncuserdata(w, s, Uuid) 156 HandlerSyncuserdata(w, s, Uuid)
156 } 157 }
157 158
  159 +func TestDDT(w http.ResponseWriter, r *http.Request) {
  160 +
  161 + realgold, err := AddCoinToSdk(4983054, 100000, "1022", "test", 99)
  162 + if err != nil {
  163 + logger.Error("Testapi failed")
  164 + }
  165 + logger.Info("Testapi=%v", realgold)
  166 +}
  167 +
158 func UserLogin(w http.ResponseWriter, r *http.Request) { 168 func UserLogin(w http.ResponseWriter, r *http.Request) {
159 169
160 Uuid := 0 170 Uuid := 0