From bcd06d1275422222085c85174dd763af015fddda Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 8 Aug 2024 11:54:49 +0800 Subject: [PATCH] 1 --- webapp/services/callback/ShopAddItemService.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/webapp/services/callback/ShopAddItemService.php b/webapp/services/callback/ShopAddItemService.php index 7cfb2410..8c0fa231 100644 --- a/webapp/services/callback/ShopAddItemService.php +++ b/webapp/services/callback/ShopAddItemService.php @@ -12,22 +12,7 @@ class ShopAddItemService { public function addGameLog($address,$type, $subtype, $params){ $accountId = $this->getAccountId($address); - $conn = myself()->_getMysql($address); - SqlHelper::insert( - $conn, - 't_game_log', - array( - 'account_id' => $accountId, - 'type' => $type, - 'subtype' => $subtype, - 'param1' => getXVal($params, 'param1', ''), - 'param2' => getXVal($params, 'param2', ''), - 'param3' => getXVal($params, 'param3', ''), - 'param4' => getXVal($params, 'param4', ''), - 'createtime' => myself()->_getNowTime(), - 'modifytime' => myself()->_getNowTime() - ) - ); + myself()->_addLogEx($accountId, $type, $subtype, $params); } public function addItem($address,$itemId,$itemNum){