正在显示
3 个修改的文件
包含
63 行增加
和
1 行删除
app/Console/Commands/Test/LyhImportTest.php
0 → 100644
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @remark : | ||
| 4 | + * @name :LyhImportTest.php | ||
| 5 | + * @author :lyh | ||
| 6 | + * @method :post | ||
| 7 | + * @time :2025/2/24 14:52 | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +namespace App\Console\Commands\Test; | ||
| 11 | + | ||
| 12 | +use Illuminate\Console\Command; | ||
| 13 | + | ||
| 14 | +class LyhImportTest extends Command | ||
| 15 | +{ | ||
| 16 | + /** | ||
| 17 | + * The name and signature of the console command. | ||
| 18 | + * | ||
| 19 | + * @var string | ||
| 20 | + */ | ||
| 21 | + protected $signature = 'lyh_import_test'; | ||
| 22 | + | ||
| 23 | + /** | ||
| 24 | + * The console command description. | ||
| 25 | + * | ||
| 26 | + * @var string | ||
| 27 | + */ | ||
| 28 | + protected $description = '导入数据'; | ||
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * @remark :统一更新路由 | ||
| 32 | + * @name :handle | ||
| 33 | + * @author :lyh | ||
| 34 | + * @method :post | ||
| 35 | + * @time :2023/11/20 15:13 | ||
| 36 | + */ | ||
| 37 | + public function handle(){ | ||
| 38 | + $data = []; | ||
| 39 | + echo date('Y-m-d H:i:s') . 'end'.json_encode($data) . PHP_EOL; | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + /** | ||
| 43 | + * @remark :导入扩展模块数据 | ||
| 44 | + * @name :importCustomModule | ||
| 45 | + * @author :lyh | ||
| 46 | + * @method :post | ||
| 47 | + * @time :2025/2/24 14:54 | ||
| 48 | + */ | ||
| 49 | + public function importCustomModule(){ | ||
| 50 | + | ||
| 51 | + } | ||
| 52 | +} |
| @@ -67,6 +67,16 @@ class UpdateRoute extends Command | @@ -67,6 +67,16 @@ class UpdateRoute extends Command | ||
| 67 | echo date('Y-m-d H:i:s') . 'end'.json_encode($data) . PHP_EOL; | 67 | echo date('Y-m-d H:i:s') . 'end'.json_encode($data) . PHP_EOL; |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | + /** | ||
| 71 | + * @remark :导入数据 | ||
| 72 | + * @name :importCustomModule | ||
| 73 | + * @author :lyh | ||
| 74 | + * @method :post | ||
| 75 | + * @time :2025/2/24 14:44 | ||
| 76 | + */ | ||
| 77 | + public function importCustomModule(){ | ||
| 78 | + | ||
| 79 | + } | ||
| 70 | 80 | ||
| 71 | public function ceshi($api_no = null) | 81 | public function ceshi($api_no = null) |
| 72 | { | 82 | { |
| @@ -59,7 +59,7 @@ class AiBlogController extends BaseController | @@ -59,7 +59,7 @@ class AiBlogController extends BaseController | ||
| 59 | * @time :2025/2/14 13:59 | 59 | * @time :2025/2/14 13:59 |
| 60 | */ | 60 | */ |
| 61 | public function getAiBlog(AiBlog $aiBlog){ | 61 | public function getAiBlog(AiBlog $aiBlog){ |
| 62 | - $lists = $aiBlog->lists($this->map,$this->page,$this->row,'id',['id','new_title','image','task_id','status','created_at','updated_at']); | 62 | + $lists = $aiBlog->lists($this->map,$this->page,$this->row,'id',['id','keyword','new_title','image','task_id','status','created_at','updated_at']); |
| 63 | if(!empty($lists) && !empty($lists['list'])){ | 63 | if(!empty($lists) && !empty($lists['list'])){ |
| 64 | foreach ($lists['list'] as $k => $v){ | 64 | foreach ($lists['list'] as $k => $v){ |
| 65 | $v['image'] = getImageUrl($v['image']); | 65 | $v['image'] = getImageUrl($v['image']); |
-
请 注册 或 登录 后发表评论