!117 多余删除

Merge pull request !117 from develop
This commit is contained in:
赵世界 2022-10-26 06:02:58 +00:00 committed by Gitee
commit 676a1a9de6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 0 additions and 8 deletions

View File

@ -43,15 +43,9 @@ class UploadController extends Controller
$this->res['resource'] = $res['response']['result']; $this->res['resource'] = $res['response']['result'];
Storage::delete($path); Storage::delete($path);
} else { } else {
$this->res['resource'] = $url; $this->res['resource'] = $url;
} }
return response($this->res, $this->res['httpCode']); return response($this->res, $this->res['httpCode']);
} }
function browse($file_name)
{
return response()->file(storage_path() . '/app/ktt/' . $file_name);
}
} }

View File

@ -24,5 +24,3 @@ Route::get('goods_skus/export', [GoodsSkusController::class, 'export'])->name('g
Route::get('goods/import/template', [GoodsController::class, 'download'])->name('download.goods_import.template'); Route::get('goods/import/template', [GoodsController::class, 'download'])->name('download.goods_import.template');
Route::get('callback', [ShopsController::class, 'authBind'])->name('shop.auth_bind.callback'); Route::get('callback', [ShopsController::class, 'authBind'])->name('shop.auth_bind.callback');
Route::get("ktt/{file_name}","UploadController@browse");