mirror of
https://github.com/openvk/openvk
synced 2024-11-14 02:59:12 +03:00
Coin: Add ability to see how much voices you reveiced trough notifications
This commit is contained in:
parent
32e976a3b7
commit
26b8b23aae
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class FetchToncoinTransactions extends Command
|
|||
$value = ($transfer["in_msg"]["value"] / NANOTON) / OPENVK_ROOT_CONF["openvk"]["preferences"]["ton"]["rate"];
|
||||
$user->setCoins($user->getCoins() + $value);
|
||||
$user->save();
|
||||
(new CoinsTransferNotification($user, (new Users)->get(OPENVK_ROOT_CONF["openvk"]["preferences"]["support"]["adminAccount"]), 0, "Via TON cryptocurrency"))->emit();
|
||||
(new CoinsTransferNotification($user, (new Users)->get(OPENVK_ROOT_CONF["openvk"]["preferences"]["support"]["adminAccount"]), (int) $value, "Via TON cryptocurrency"))->emit();
|
||||
$header->writeln($value . " coins are added to " . $user->getId() . " user id");
|
||||
$this->transactions->insert([
|
||||
"id" => NULL,
|
||||
|
|
Loading…
Reference in a new issue