mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1010 B
35 lines
1010 B
6 months ago
|
# coding:utf-8
|
||
|
|
||
|
# ---------------------------------------------------------------------------------
|
||
|
# MW-Linux面板
|
||
|
# ---------------------------------------------------------------------------------
|
||
|
# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved.
|
||
|
# ---------------------------------------------------------------------------------
|
||
|
# Author: midoks <midoks@163.com>
|
||
|
# ---------------------------------------------------------------------------------
|
||
|
|
||
|
|
||
|
from flask import Blueprint, render_template
|
||
|
from flask import request
|
||
|
|
||
|
from admin.user_login_check import panel_login_required
|
||
|
|
||
|
from admin import model
|
||
|
|
||
|
import core.mw as mw
|
||
|
import utils.system as sys
|
||
|
|
||
|
from .system import blueprint
|
||
|
|
||
|
# 升级检测
|
||
|
@blueprint.route('/update_server', endpoint='update_server')
|
||
|
@panel_login_required
|
||
|
def update_server():
|
||
|
panel_type = request.args.get('type', 'check')
|
||
|
version = request.args.get('version', '')
|
||
|
|
||
|
return mw.returnData(False, '已经是最新,无需更新!')
|
||
|
|
||
|
|
||
|
|