AiVideoController.php
1.1 KB
<?php
/**
* @remark :
* @name :AiVideoController.php
* @author :lyh
* @method :post
* @time :2025/8/2 11:18
*/
namespace App\Http\Controllers\Api;
use App\Enums\Common\Code;
use App\Models\Project\AiVideoAutoLog;
class AiVideoController extends BaseController
{
/**
* @remark :回调方法
* @name :ImageCallBack
* @author :lyh
* @method :post
* @time :2025/8/2 11:19
*/
public function ImageCallBack(){
$data = $this->param['attachments'] ?? [];
$aiVideoAutoLogModel = new AiVideoAutoLog();
if(empty($data)){
$aiVideoAutoLogModel->edit(['status'=>9],['trigger_id'=>$data['trigger_id']]);
}
$url = 'https://mjcdn.ttapi.io/attachments/1400347301465165925/1401115681872805918/opalguardian295705_Introducing_the_cutting-edge_product_from_Zh_47ba54d3-f711-43d1-b50e-d6a1d2e743e3.png?ex=688f1a2a&is=688dc8aa&hm=2413d13f40f9023a97804024ed1e526f24fe7573208c9b0660f42da9cdd4d306&';
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
$this->response('success');
}
}