game2006api/webapp/models/BattleHistory.php
2022-10-08 20:19:07 +08:00

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;
}
}