RefreshToken.php 817 字节
<?php

namespace Lackoxygen\TiktokShop\Command;

use Lackoxygen\TiktokShop\Supervisor\Session\SessionHeart;
use Illuminate\Console\Command;

class RefreshToken extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'tiktok-shop:refresh.token';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'The refresh tiktok shop token';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        SessionHeart::new()->keepalive();

        return 0;
    }
}