正在显示
1 个修改的文件
包含
46 行增加
和
0 行删除
app/Console/Commands/Ai/AiDomainTask.php
0 → 100644
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @remark : | ||
| 4 | + * @name :AiDomainTask.php | ||
| 5 | + * @author :lyh | ||
| 6 | + * @method :post | ||
| 7 | + * @time :2025/6/19 10:53 | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +namespace App\Console\Commands\Ai; | ||
| 11 | + | ||
| 12 | +use App\Models\Domain\DomainInfo; | ||
| 13 | +use Illuminate\Console\Command; | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + * @remark :拉取项目Ai域名 | ||
| 17 | + * @name :AiDomainTask | ||
| 18 | + * @author :lyh | ||
| 19 | + * @method :post | ||
| 20 | + * @time :2025/6/19 10:54 | ||
| 21 | + */ | ||
| 22 | +class AiDomainTask extends Command | ||
| 23 | +{ | ||
| 24 | + /** | ||
| 25 | + * The name and signature of the console command. | ||
| 26 | + * | ||
| 27 | + * @var string | ||
| 28 | + */ | ||
| 29 | + protected $signature = 'ai_domain'; | ||
| 30 | + | ||
| 31 | + /** | ||
| 32 | + * The console command description. | ||
| 33 | + * | ||
| 34 | + * @var string | ||
| 35 | + */ | ||
| 36 | + protected $description = '获取对应域名的ai复制站域名'; | ||
| 37 | + | ||
| 38 | + public $url = 'https://www.cmer.site/api/globalso_site'; | ||
| 39 | + public function handle(){ | ||
| 40 | + $pageSize = 500; | ||
| 41 | + $page = 1; | ||
| 42 | + $domainInfoModel = new DomainInfo(); | ||
| 43 | + $res = http_get($this->url.'?pagesize='.$pageSize.'&page='.$page); | ||
| 44 | + dd($res); | ||
| 45 | + } | ||
| 46 | +} |
-
请 注册 或 登录 后发表评论