game2006api/webapp/models/TicketConsumeRecord.php
aozhiwei 360a1ed1e0 1
2024-07-09 00:38:09 +08:00

32 lines
707 B
PHP

<?php
namespace models;
use mt;
use phpcommon\SqlHelper;
class TicketConsumeRecord extends BaseModel {
public static function add($matchRoomUuid, $accountId)
{
SqlHelper::upsert(
myself()->_getSelfMysql(),
'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(),
)
);
}
}