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){