123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace app\service\api\upload;
- use app\service\core\upload\CoreFetchService;
- use core\base\BaseApiService;
- use Exception;
- class FetchService extends BaseApiService
- {
- private $root_path = 'file';
-
- public function image(string $url){
- $dir = $this->root_path.'/'.'image'.'/'.date('Ym').'/'.date('d');
- $core_upload_service = new CoreFetchService();
- return $core_upload_service->image($url,0, $dir);
- }
- }
|