ReportStatLog.php 918 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * 上报统计日志
  4. * 2022.1.24
  5. */
  6. namespace loyalsoft;
  7. include_once __DIR__ . '/../../main.php';
  8. HttpUtil::PostOnly();
  9. /**
  10. * 客户端统计日志上报处理类
  11. */
  12. class CliendStatLogReportHandler {
  13. /**
  14. * 客户端日志上报
  15. */
  16. static function logReport() {
  17. extract(query_paras()); # 客户端参数解析:
  18. $key = MemKey_GameRun::stat_clientReportLog($EventID);
  19. $logItem = array(# # 组装对象
  20. 'UID' => $UID,
  21. 'zoneid' => $zoneid,
  22. 'EArgKey' => $EArgKey,
  23. 'EArgValue' => $EArgValue,
  24. 'ts' => TimeUtil::dtCurrent()
  25. );
  26. gMem()->lpush($key, array($logItem)); # 压入日志
  27. }
  28. }
  29. CliendStatLogReportHandler::logReport();
  30. echoLine("copy!");