mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-09 03:50:26 +08:00
Dashboard可以提示API节点升级
This commit is contained in:
@@ -620,8 +620,12 @@ func (this *AdminService) ComposeAdminDashboard(ctx context.Context, req *pb.Com
|
|||||||
|
|
||||||
// API节点升级信息
|
// API节点升级信息
|
||||||
{
|
{
|
||||||
|
var apiVersion = req.ApiVersion
|
||||||
|
if len(apiVersion) == 0 {
|
||||||
|
apiVersion = teaconst.Version
|
||||||
|
}
|
||||||
upgradeInfo := &pb.ComposeAdminDashboardResponse_UpgradeInfo{
|
upgradeInfo := &pb.ComposeAdminDashboardResponse_UpgradeInfo{
|
||||||
NewVersion: teaconst.Version,
|
NewVersion: apiVersion,
|
||||||
}
|
}
|
||||||
countNodes, err := models.SharedAPINodeDAO.CountAllLowerVersionNodes(tx, upgradeInfo.NewVersion)
|
countNodes, err := models.SharedAPINodeDAO.CountAllLowerVersionNodes(tx, upgradeInfo.NewVersion)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user