" . $EventID); exit; } if ($ok) { Response(); } exit; function Response($errorcode = 0, $errormsg = "ok") { $ret = array("errorcode" => $errorcode, "errormsg" => $errormsg); if ($errorcode != 0) { \Logging\LogError($errormsg . " _GET:" . print_r($_GET, true) . " ret:" . print_r($ret, true)); } echo \CommFunc\MyJson_encode($ret); } function EventReport_Chat() { global $GameName, $Channel; $redisKey = \RedisOper\GetFCRedisKey($GameName, "Chatmonitor", $Channel); $count = \RedisOper\ListPush($redisKey, "R", $_GET); // 插入表尾 \CommFunc\GetConfig("Chatmonitor", "CacheChatCount", $maxCount); if ($count > $maxCount) { \RedisOper\ListPop($redisKey, $ret, "L"); // 移除最早一个 } return true; } function EventReport_BugReport() { $insArray = $_GET; unset($insArray["EventID"]); unset($insArray["ProductID"]); unset($insArray["OperatorID"]); $insArray["Channel"] = $_GET["OperatorID"]; if (!\DBOper\Insert("EventReportBug", $insArray)) { return; }; return true; }