AiDomainTask.php 957 字节
<?php
/**
 * @remark :
 * @name   :AiDomainTask.php
 * @author :lyh
 * @method :post
 * @time   :2025/6/19 10:53
 */

namespace App\Console\Commands\Ai;

use App\Models\Domain\DomainInfo;
use Illuminate\Console\Command;

/**
 * @remark :拉取项目Ai域名
 * @name   :AiDomainTask
 * @author :lyh
 * @method :post
 * @time   :2025/6/19 10:54
 */
class AiDomainTask extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'ai_domain';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '获取对应域名的ai复制站域名';

    public $url = 'https://www.cmer.site/api/globalso_site';
    public function handle(){
        $pageSize = 500;
        $page = 1;
        $domainInfoModel = new DomainInfo();
        $res = http_get($this->url.'?pagesize='.$pageSize.'&page='.$page);
        dd($res);
    }
}