feat: #10000 图片修改

This commit is contained in:
赵世界 2022-10-26 14:00:36 +08:00
parent 949b77f89e
commit 11a04d32d3
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'];
Storage::delete($path);
} else {
$this->res['resource'] = $url;
}
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('callback', [ShopsController::class, 'authBind'])->name('shop.auth_bind.callback');
Route::get("ktt/{file_name}","UploadController@browse");