|
@@ -74,25 +74,22 @@ class lyhDemo extends Command |
|
@@ -74,25 +74,22 @@ class lyhDemo extends Command |
|
74
|
* @time :2025/7/22 15:14
|
74
|
* @time :2025/7/22 15:14
|
|
75
|
*/
|
75
|
*/
|
|
76
|
public function _actionRoute(){
|
76
|
public function _actionRoute(){
|
|
77
|
- $geo_service = new GeoService();
|
|
|
|
78
|
- $data = $geo_service->getDeepSeekResult("创贸总共多少人?",'gpt-4o-mini');
|
|
|
|
79
|
- dd($data);
|
|
|
|
80
|
-// $projectModel = new Project();
|
|
|
|
81
|
-// $lists = $projectModel->list(['delete_status' => 0,'project_type'=>0,'extend_type'=>0,'type'=>['in',[2,3,4,6]]], 'id', ['id']);
|
|
|
|
82
|
-// $data = [];
|
|
|
|
83
|
-// foreach ($lists as $item){
|
|
|
|
84
|
-// echo date('Y-m-d H:i:s') . '开始--项目的id:'. $item['id'] . PHP_EOL;
|
|
|
|
85
|
-// ProjectServer::useProject($item['id']);
|
|
|
|
86
|
-// $aiBlogModel = new AiBlog();
|
|
|
|
87
|
-// $info = $aiBlogModel->read(['route'=>null],['id']);
|
|
|
|
88
|
-// if($info !== false){
|
|
|
|
89
|
-// echo '项目id:'.$item['id'].PHP_EOL;
|
|
|
|
90
|
-// $data[] = $item['id'];
|
|
|
|
91
|
-// }
|
|
|
|
92
|
-// dd($data);
|
|
|
|
93
|
-// echo 'end';
|
|
|
|
94
|
-// DB::disconnect('custom_mysql');
|
|
|
|
95
|
-// }
|
77
|
+ $projectModel = new Project();
|
|
|
|
78
|
+ $lists = $projectModel->list(['delete_status' => 0,'project_type'=>0,'extend_type'=>0,'type'=>['in',[1,2,3,4,6]]], 'id', ['id']);
|
|
|
|
79
|
+ $data = [];
|
|
|
|
80
|
+ foreach ($lists as $item){
|
|
|
|
81
|
+ echo date('Y-m-d H:i:s') . '开始--项目的id:'. $item['id'] . PHP_EOL;
|
|
|
|
82
|
+ ProjectServer::useProject($item['id']);
|
|
|
|
83
|
+ $aiBlogModel = new AiBlog();
|
|
|
|
84
|
+ $info = $aiBlogModel->read(['text'=>['like','%href="blog/%']],['id']);
|
|
|
|
85
|
+ if($info !== false){
|
|
|
|
86
|
+ echo '需要处理->项目id:'.$item['id'].PHP_EOL;
|
|
|
|
87
|
+ $data[] = $item['id'];
|
|
|
|
88
|
+ }
|
|
|
|
89
|
+ dd($data);
|
|
|
|
90
|
+ echo 'end';
|
|
|
|
91
|
+ DB::disconnect('custom_mysql');
|
|
|
|
92
|
+ }
|
|
96
|
}
|
93
|
}
|
|
97
|
|
94
|
|
|
98
|
public function _actionTemplateMain(){
|
95
|
public function _actionTemplateMain(){
|