This commit is contained in:
aozhiwei 2024-08-08 11:54:49 +08:00
parent 4d0018157c
commit bcd06d1275

View File

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