32 lines
707 B
PHP
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(),
|
|
)
|
|
);
|
|
}
|
|
|
|
}
|