game2006api/webapp/models/TicketConsumeRecord.php
aozhiwei ec6e9b3606 1
2024-07-08 20:36:20 +08:00

32 lines
709 B
PHP

<?php
namespace models;
use mt;
use phpcommon\SqlHelper;
class TicketConsumeRecord extends BaseModel {
public static function add($matchRoomUuid, $accountId)
{
SqlHelper::upsert(
myself()->_getMarketMysql(),
't_ticket_consume_record',
array(
'match_room_uuid' => $matchRoomUuid,
'account_id' => $accountId,
),
array(
),
array(
'match_room_uuid' => $matchRoomUuid,
'account_id' => $accountId,
'createtime' => myself()->_getNowTime(),
'modifytime' => myself()->_getNowTime(),
)
);
}
}