mirror of
https://gh.llkk.cc/https://github.com/CaptainCore/captaincore-manager.git
synced 2025-10-04 14:12:08 +08:00
👌 IMPROVE: Account fetch
This commit is contained in:
parent
ddf0144d0d
commit
c7316ae2e1
1 changed files with 1 additions and 0 deletions
|
@ -2713,6 +2713,7 @@ HEREDOC;
|
|||
if ( $cmd == 'fetchAccount' ) {
|
||||
$account = new CaptainCore\Account( $value );
|
||||
$account->calculate_usage();
|
||||
$account->calculate_totals();
|
||||
echo json_encode( $account->fetch() );
|
||||
}
|
||||
if ( $cmd == 'fetchUser' ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue