Fix auxiliary command
This commit is contained in:
parent
c4f68fef07
commit
8a43630ba9
1 changed files with 6 additions and 9 deletions
|
@ -1,15 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands;
|
||||||
|
|
||||||
use App\Models\Address;
|
|
||||||
use App\Models\TagAddressRequest;
|
|
||||||
|
|
||||||
use DateInterval;
|
use DateInterval;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
use DateTimeZone;
|
use DateTimeZone;
|
||||||
use Exception;
|
use Exception;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
|
use App\Models\Address;
|
||||||
|
use App\Models\TagAddressRequest;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
@ -43,15 +43,12 @@ class AuxCommand extends Command{
|
||||||
*/
|
*/
|
||||||
protected $signature = 'explorer:aux {function?}';
|
protected $signature = 'explorer:aux {function?}';
|
||||||
|
|
||||||
public function __construct(){
|
|
||||||
parent::__construct();
|
|
||||||
self::$rpcurl = config('lbry.rpc_url');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute the console command.
|
* Execute the console command.
|
||||||
*/
|
*/
|
||||||
public function handle(): void{
|
public function handle(): void{
|
||||||
|
self::$rpcurl = config('lbry.rpc_url');
|
||||||
|
|
||||||
$function = $this->argument('function');
|
$function = $this->argument('function');
|
||||||
if($function){
|
if($function){
|
||||||
$this->$function();
|
$this->$function();
|
||||||
|
@ -173,7 +170,7 @@ class AuxCommand extends Command{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$btrxjson = json_decode(self::curl_get(self::bittrex));
|
$btrxjson = null; //TODO json_decode(self::curl_get(self::bittrex));
|
||||||
$blckjson = json_decode(self::curl_get(self::blockchainticker));
|
$blckjson = json_decode(self::curl_get(self::blockchainticker));
|
||||||
|
|
||||||
if ($btrxjson) {
|
if ($btrxjson) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue