mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
fix: 修复一些主题用户获取节点为空的问题,取消节点API未找到节点的日志记录
This commit is contained in:
parent
8e57bc4e9b
commit
68d7d64ea7
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers\V1\Server;
|
||||
|
||||
use App\Exceptions\ApiException;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ServerService;
|
||||
use App\Services\UserService;
|
||||
@ -25,8 +26,7 @@ class UniProxyController extends Controller
|
||||
$this->nodeType = $request->input('node_type');
|
||||
$this->nodeInfo = $this->serverService->getServer($this->nodeId, $this->nodeType);
|
||||
if(!$this->nodeInfo) {
|
||||
Log::channel("daily")->info("$this->nodeId $this->nodeType $this->nodeInfo");
|
||||
throw new \Exception('server is not exist', 500);
|
||||
throw new ApiException('server is not exist', 500);
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,6 @@ class ServerController extends Controller
|
||||
$data = NodeResource::collection($servers);
|
||||
return response([
|
||||
'data' => $data
|
||||
])->header('ETag', "\"{$eTag}\"")
|
||||
->header('Cache-Control', 'public, max-age=3600');
|
||||
])->header('ETag', "\"{$eTag}\"");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user