合并分支 'lyh-server' 到 'master'
gx 查看合并请求 !1598
正在显示
1 个修改的文件
包含
4 行增加
和
6 行删除
| @@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
| 10 | namespace App\Console\Commands\LyhTest; | 10 | namespace App\Console\Commands\LyhTest; |
| 11 | 11 | ||
| 12 | use App\Models\Project\AiBlogTask; | 12 | use App\Models\Project\AiBlogTask; |
| 13 | +use App\Models\Project\Project; | ||
| 13 | use Illuminate\Console\Command; | 14 | use Illuminate\Console\Command; |
| 14 | use Illuminate\Support\Facades\Artisan; | 15 | use Illuminate\Support\Facades\Artisan; |
| 15 | use Illuminate\Support\Facades\DB; | 16 | use Illuminate\Support\Facades\DB; |
| @@ -31,11 +32,8 @@ class lyhDemo extends Command | @@ -31,11 +32,8 @@ class lyhDemo extends Command | ||
| 31 | protected $description = '更新路由'; | 32 | protected $description = '更新路由'; |
| 32 | 33 | ||
| 33 | public function handle(){ | 34 | public function handle(){ |
| 34 | - $client = new \GuzzleHttp\Client(); | ||
| 35 | - $data = $client->request('GET', 'https://quanqiusou.cn/extend_api/v6/update.php?postid='.'13810', [ | ||
| 36 | - 'proxy' => env('CURL_PROXY'), // 代理服务器地址和端口号 | ||
| 37 | - ])->getBody()->getContents(); | ||
| 38 | - $data = json_decode($data, true); | ||
| 39 | - dd($data); | 35 | + $projectModel = new Project(); |
| 36 | + $lists = $projectModel->list(['from_order_id'=>null]); | ||
| 37 | + return true; | ||
| 40 | } | 38 | } |
| 41 | } | 39 | } |
-
请 注册 或 登录 后发表评论