WIP: new battle
This commit is contained in:
@@ -27,7 +27,7 @@ class ActionModel
|
||||
[
|
||||
$user['id'],
|
||||
$time,
|
||||
$user['city'],
|
||||
'',
|
||||
$user['room'],
|
||||
$vars,
|
||||
UserIp::get(),
|
||||
@@ -84,11 +84,6 @@ class ActionModel
|
||||
return (int)Db::getValue($sql, $binds);
|
||||
}
|
||||
|
||||
public function getByVals(string $vals)
|
||||
{
|
||||
return Db::getRow('select * from actions where uid = ? and vals = ?', [$this->uid, $vals]);
|
||||
}
|
||||
|
||||
public function getLastByVals(string $vals)
|
||||
{
|
||||
return Db::getRow(
|
||||
@@ -115,16 +110,6 @@ class ActionModel
|
||||
Db::sql('delete from actions where uid = ? and vals = ?', [$this->uid, $vals]);
|
||||
}
|
||||
|
||||
public function getDailyQuest(): array
|
||||
{
|
||||
$filter = [
|
||||
"uid = $this->uid",
|
||||
"vars = 'day_quest'",
|
||||
];
|
||||
|
||||
return self::get($filter);
|
||||
}
|
||||
|
||||
public function getFinishedDailyQuestTasks(int $timeout): array
|
||||
{
|
||||
$arr = [];
|
||||
|
||||
Reference in New Issue
Block a user