作者 lyh

gx

... ... @@ -17,6 +17,7 @@ use App\Helper\Translate;
use App\Helper\Wechat;
use App\Http\Logic\Bside\User\UserLoginLogic;
use App\Models\Domain\DomainInfo;
use App\Models\File\ErrorFile;
use App\Models\Project\Project;
use App\Models\Service\Service;
use App\Models\Sms\SmsLog;
... ... @@ -311,4 +312,17 @@ class LoginController extends BaseController
}
return $data;
}
public function ceshi(){
$path = 'upload/p/1577/image_other/2024-04';
$fileName = '661e42970abd921831.png';
$file_path = getImageUrl($path.'/'.$fileName);
$cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$path.'" https://v6-file.globalso.com/upload.php';
$code = shell_exec($cmd);
if(200 != (int)$code){
$errorFileModel = new ErrorFile();
$errorFileModel->add(['path'=>$this->path.'/'.$fileName]);
}
$this->response('success');
}
}
... ...