31 lines
568 B
PHP
31 lines
568 B
PHP
<?php
|
|
|
|
|
|
namespace models;
|
|
|
|
use mt;
|
|
use phpcommon\SqlHelper;
|
|
class BattleHistory extends BaseModel
|
|
{
|
|
public static function add($data)
|
|
{
|
|
SqlHelper::insert
|
|
(myself()->_getSelfMysql(),
|
|
't_battle_history',
|
|
$data
|
|
);
|
|
}
|
|
|
|
public static function getMyBattleHistory()
|
|
{
|
|
$row = SqlHelper::ormSelect(
|
|
myself()->_getSelfMysql(),
|
|
't_battle_history',
|
|
array(
|
|
'account_id' => myself()->_getAccountId(),
|
|
)
|
|
);
|
|
return $row;
|
|
}
|
|
|
|
} |