浏览代码

添加日志

makela 1 周之前
父节点
当前提交
381465f158
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      project/service/loginserver/shengtian.lua

+ 2 - 2
project/service/loginserver/shengtian.lua

@@ -182,9 +182,9 @@ function MODULE.upload(uptype, data)
     }
     local str = string.format("game_code=%s&time=%s&uid=%s%s", cdkconf.gameCode, content.time, content.uid, cdkconf.secret)
     content.sign = md5.sumhexa(str)
-    -- trace("shengtian: upload start "..uptype)
+    trace("shengtian: upload start %s uid:%s", uptype, data.uid)
     local ok, statuscode, body = pcall(httpc.post, host, url, content)
-    -- trace("shengtian: upload end "..uptype)
+    trace("shengtian: upload end %s uid:%s", uptype, data.uid)
     local error_msg
     if ok then
         local ret = cjson_decode(body)