正在显示
1 个修改的文件
包含
14 行增加
和
0 行删除
| @@ -17,6 +17,7 @@ use App\Helper\Translate; | @@ -17,6 +17,7 @@ use App\Helper\Translate; | ||
| 17 | use App\Helper\Wechat; | 17 | use App\Helper\Wechat; |
| 18 | use App\Http\Logic\Bside\User\UserLoginLogic; | 18 | use App\Http\Logic\Bside\User\UserLoginLogic; |
| 19 | use App\Models\Domain\DomainInfo; | 19 | use App\Models\Domain\DomainInfo; |
| 20 | +use App\Models\File\ErrorFile; | ||
| 20 | use App\Models\Project\Project; | 21 | use App\Models\Project\Project; |
| 21 | use App\Models\Service\Service; | 22 | use App\Models\Service\Service; |
| 22 | use App\Models\Sms\SmsLog; | 23 | use App\Models\Sms\SmsLog; |
| @@ -311,4 +312,17 @@ class LoginController extends BaseController | @@ -311,4 +312,17 @@ class LoginController extends BaseController | ||
| 311 | } | 312 | } |
| 312 | return $data; | 313 | return $data; |
| 313 | } | 314 | } |
| 315 | + | ||
| 316 | + public function ceshi(){ | ||
| 317 | + $path = 'upload/p/1577/image_other/2024-04'; | ||
| 318 | + $fileName = '661e42970abd921831.png'; | ||
| 319 | + $file_path = getImageUrl($path.'/'.$fileName); | ||
| 320 | + $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$path.'" https://v6-file.globalso.com/upload.php'; | ||
| 321 | + $code = shell_exec($cmd); | ||
| 322 | + if(200 != (int)$code){ | ||
| 323 | + $errorFileModel = new ErrorFile(); | ||
| 324 | + $errorFileModel->add(['path'=>$this->path.'/'.$fileName]); | ||
| 325 | + } | ||
| 326 | + $this->response('success'); | ||
| 327 | + } | ||
| 314 | } | 328 | } |
-
请 注册 或 登录 后发表评论