mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
commit
676a1a9de6
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user