作者 lyh

gx裁剪图片

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