作者 lyh

gx裁剪图片

@@ -92,7 +92,7 @@ class CropImage extends Command @@ -92,7 +92,7 @@ class CropImage extends Command
92 public function _aiAction($project_id,$keywordImage){ 92 public function _aiAction($project_id,$keywordImage){
93 $cosService = new CosService(); 93 $cosService = new CosService();
94 //ai_blog裁剪 94 //ai_blog裁剪
95 - $ai_image = $this->getAiBlogImage($project_id,$keywordImage ?? ''); 95 + $ai_image = $this->getAiBlogImage($project_id,$keywordImage ?? []);
96 if(empty($ai_image)){ 96 if(empty($ai_image)){
97 echo '当前图片不需要裁剪。'.PHP_EOL; 97 echo '当前图片不需要裁剪。'.PHP_EOL;
98 return true; 98 return true;
@@ -43,16 +43,6 @@ class TestController extends BaseController @@ -43,16 +43,6 @@ class TestController extends BaseController
43 * @time :2025/2/13 16:34 43 * @time :2025/2/13 16:34
44 */ 44 */
45 public function ceshi(){ 45 public function ceshi(){
46 - $this->param = [  
47 - 'title'=>'apple',  
48 - 'description'=>'apples',  
49 - 'images'=>[  
50 - ['url'=>'https://ecdn6.globalso.com/upload/public/template/64e332671b32e25328.png','title'=>'apple'],  
51 - ['url'=>'https://ecdn6.globalso.com/upload/public/template/64e32a24b314a39425.png','title'=>'apples'],  
52 - ],  
53 - ];  
54 - $aiVideoService = new AiVideoService(467);  
55 - $result = $aiVideoService->createTask($this->param['title'],$this->param['description'],$this->param['images'],$this->param['anchor'] ?? []);  
56 - $this->response('success',Code::SUCCESS,$result); 46 + $this->response('success',Code::SUCCESS,[]);
57 } 47 }
58 } 48 }
1 -Options +FollowSymLinks -Indexes  
2 -RewriteEngine On  
3 -  
4 -RewriteCond %{HTTP:Authorization} .  
5 -RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]  
6 -  
7 -RewriteCond %{REQUEST_FILENAME} !-d  
8 -RewriteCond %{REQUEST_FILENAME} !-f  
9 -RewriteRule ^ index.php [L]