|
...
|
...
|
@@ -312,17 +312,4 @@ 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'=>$path.'/'.$fileName]);
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|