This commit is contained in:
aozhiwei 2024-08-08 11:51:24 +08:00
parent e9023cb978
commit 4d0018157c

View File

@ -599,7 +599,9 @@ class BaseAuthedController extends BaseController {
break;
default:
{
$this->_addLog('additems', 'invalid_item', array(
$this->_addLogEx($this->_getAccountId(),
'additems', 'invalid_item',
array(
'param1' => $item['item_id'],
'param2' => $item['item_num'],
));
@ -759,26 +761,6 @@ class BaseAuthedController extends BaseController {
);
}
public function _addLog($type, $subtype, $params)
{
$fieldsKv = array(
'account_id' => $this->_getAccountId(),
'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()
);
SqlHelper::insert(
myself()->_getSelfMysql(),
't_game_log',
$fieldsKv
);
}
public function _getV($x, $y, $defVal = 0)
{
return DynData::getV($x, $y, $defVal);