51 lines
1.5 KiB
PHP
51 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Web\Nasa\V1;
|
|
|
|
use Illuminate\Http\Request;
|
|
use App\Http\Requests\Nasa\NasaQueryRequest;
|
|
use Illuminate\View\View;
|
|
use Illuminate\Support\Facades\Http;
|
|
use App\Http\Controllers\Web\Nasa\V1\Base\ListController;
|
|
//use Illuminate\Support\Facades\View;
|
|
|
|
class ResourceUploadimagesBaseController extends ListController
|
|
{
|
|
|
|
protected string $sApiPath = "uploadimages/base";
|
|
protected string $sView = 'nasa._commons.list';
|
|
protected string $sSiteWww;
|
|
// protected array $aCustom;
|
|
protected string $sHeaderActionView = 'nasa.v1._actions.list';
|
|
protected array $aBookCode = [
|
|
"ResourceUploadUmages说明书",
|
|
];
|
|
// protected array $aCustom = [
|
|
// "sImagePath" => config("path.url_resource_base").'/public/images'
|
|
// ];
|
|
|
|
public function __construct()
|
|
{
|
|
$this->sSiteWww = config("path.url_resource_base") ?? '';
|
|
|
|
$this->aCustom = [
|
|
"sImagePath" => "https://".config("path.url_resource_base").'/upload/images'
|
|
];
|
|
|
|
}
|
|
|
|
// public function hit(NasaQueryRequest $oRequest)
|
|
// {
|
|
// $iId = intval(request('id'));
|
|
// $sApiPath = $oRequest->input('api_path');
|
|
// $sSiteWww = $oRequest->input('site_www');
|
|
//
|
|
// $sField = request('field');
|
|
//
|
|
// $oResponse = Http::nasa($sSiteWww)->get($sApiPath.'/hit/' . $iId . '/' . $sField);
|
|
//
|
|
// return response()->json($oResponse->json(), 200);
|
|
// }
|
|
|
|
}
|