Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 18a4736

Browse files
author
UramnOIL
committed
修正
結構大規模になるかも
1 parent 4e633cb commit 18a4736

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/VectorNetworkProject/DataProvider/Tables/NetworkLevel/NetworkLevel.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function init(): void
3333
*/
3434
public function register(IPLayer $player, ?callable $onInserted = null, ?callable $onError = null): void
3535
{
36-
$this->connector->executeInsert(self::REGISTER, [$player->getname()], $onInserted, $onError);
36+
$this->connector->executeInsert(self::REGISTER, ['name' => $player->getName()], $onInserted, $onError);
3737

3838
}
3939

@@ -46,7 +46,7 @@ public function register(IPLayer $player, ?callable $onInserted = null, ?callabl
4646
*/
4747
public function unregister(IPLayer $player, ?callable $onSuccess = null, ?callable $onError = null): void
4848
{
49-
$this->connector->executeChange(self::UNREGISTER, [$player->getName()], $onSuccess, $onError);
49+
$this->connector->executeChange(self::UNREGISTER, ['name' => $player->getName()], $onSuccess, $onError);
5050
}
5151

5252
/**
@@ -58,7 +58,7 @@ public function unregister(IPLayer $player, ?callable $onSuccess = null, ?callab
5858
*/
5959
public function get(IPlayer $player, callable $onSuccess = null, ?callable $onError = null): void
6060
{
61-
$this->connector->executeSelect(self::GET, [$player->getName()], $onSuccess, $onError);
61+
$this->connector->executeSelect(self::GET, ['name' => $player->getName()], $onSuccess, $onError);
6262
}
6363

6464
/**
@@ -71,6 +71,6 @@ public function get(IPlayer $player, callable $onSuccess = null, ?callable $onEr
7171
*/
7272
public function add(IPlayer $player, int $exp = 0, ?callable $onSuccess = null, ?callable $onError = null): void
7373
{
74-
$this->connector->executeChange(self::ADD, [$player->getName(), $exp], $onSuccess, $onError);
74+
$this->connector->executeChange(self::ADD, ['name' => $player->getName(), $exp], $onSuccess, $onError);
7575
}
7676
}

0 commit comments

Comments
 (0)