From 2d26b1b95716850ffac1519ed0a8110c0d5b20b7 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Thu, 4 Jul 2024 16:57:16 +0800 Subject: [PATCH] 1 --- webapp/controller/GMController.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webapp/controller/GMController.class.php b/webapp/controller/GMController.class.php index f7af915a..ca5ce24a 100644 --- a/webapp/controller/GMController.class.php +++ b/webapp/controller/GMController.class.php @@ -280,12 +280,16 @@ END } } array_unshift($items,$temp); - TGLog::writeToLog("game_2006_api","loot",$items); + TGLog::writeToLog("game_2006_api","loot",array( + $itemId => $items + )); } }else{ for ($i=0; $i<$itemNum; $i++){ $items = \services\LootService::dropOutItem($itemMeta['loot']); - TGLog::writeToLog("game_2006_api","loot",$items); + TGLog::writeToLog("game_2006_api","loot",array( + $itemId => $items + )); } } }