diff --git a/app.py b/app.py index d8c0694d86228c928db7a851805f3628719fa09b..0584e106bb4ea98036abf724ca250752ea10f87f 100644 --- a/app.py +++ b/app.py @@ -21,9 +21,9 @@ def create_flask_app(): app.register_blueprint(admin.admin, url_prefix='/admin') app.register_blueprint(vod.vod, url_prefix='') app.register_blueprint(cls.cls, url_prefix='/cls') - print('自定义播放解析地址:', app.config.get('PLAY_URL')) - print('当前操作系统', sys.platform) app.logger.name = "drLogger" + logger.info(f"自定义播放解析地址:{app.config.get('PLAY_URL')}") + logger.info(f'当前操作系统{sys.platform}') rule_list = getRuleLists() wlan_info,_ = get_wlan_info() logger.info(rule_list) diff --git a/js/version.txt b/js/version.txt index 9b7a431d9ff9a1e27d8537fd53b51ace6be199b7..448ada3bdaff6ea0c5d059f4c941ff90123c41c6 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.2.4 \ No newline at end of file +3.2.5 \ No newline at end of file diff --git a/readme.md b/readme.md index 281518de2e4fad54db1279ac60d415d5b6a34853..bedda0d12ee6431cf511c7df0bda2b0f1241d4b3 100644 --- a/readme.md +++ b/readme.md @@ -46,6 +46,8 @@ [dockerfile教程](https://blog.csdn.net/qq_46158060/article/details/125718218) [获取本地设备信息](https://blog.csdn.net/cui_yonghua/article/details/125508991) [获取本地设备信息](https://m.jb51.net/article/140716.htm) +###### 2022/09/07 +- [X] 1.优化后台管理登录界面,升级更新脚本 ###### 2022/09/06 - [X] 1.增加了后台管理界面在线检测升级系统功能 - [X] 2.增加了后台管理界面修改直播源地址和同步直播源 diff --git a/static/css/home.css b/static/css/home.css index daab8427a4e3c4724ca29a514683b3892e74ad74..42cdd8ce12322d711a3140fe8a224c17dd6231c2 100644 --- a/static/css/home.css +++ b/static/css/home.css @@ -27,6 +27,9 @@ body { .tips{ color: #9b5df1; } +.kf{ + padding-top: 10px; +} .image::after{ content: ""; /*background:url('https://tuapi.eees.cc/api.php?category=dongman&type=302&px=m');*/ diff --git a/static/css/login.css b/static/css/login.css index d35fe44f4c3a0ea541a15b9f121a7750b8dcb46e..302f13c583634cfc5c2f15988b8666773fdddcc3 100644 --- a/static/css/login.css +++ b/static/css/login.css @@ -99,20 +99,22 @@ top: 0; left: 0; } .login-content{ - width: 400px; - height: 280px; + width: 350px; + height: 40%; + text-align:center; margin: 0 auto; position: relative; top: 300px; - border: 1px solid #2890fa; - background: rgba(40, 144, 250, 0.2); - border-radius: 5px; + border: 1px solid #2890fa; + background: rgba(40, 144, 250, 0.2); + border-radius: 5px; } .login-tit{ background: rgba(0, 0, 0, 0.8); border: 1px solid #2890fa; color: #fff; padding: 15px 20px; +text-align:center; font-size: 18px } .login-input { diff --git a/templates/index.html b/templates/index.html index 2264bda23ac745ca288bae5ab78e786b2028dbb3..bde234bc51eb8baf986f61787666b9b3d83902f4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -29,7 +29,7 @@ }); }); -

欢迎使用DR-PY首页界面
当前版本: {{ver}}欢迎使用DR-PY首页界面
当前版本: {{ver}}框架开发:道长框架美化:蓝莓

可以简单的自定义爬虫实现cms数据接口

diff --git a/templates/login.html b/templates/login.html index 72eb39a938902fe94069c33202c1a9e080f33a1d..371207b9dda5458afda45e13839f82c5a0dc4b1f 100644 --- a/templates/login.html +++ b/templates/login.html @@ -12,6 +12,7 @@
+
diff --git a/utils/update.py b/utils/update.py index bae1552c5bde7846516db7b9329804ecf4ceb12e..abd81c6ddf4ab46046262ea3e5b269d428237f43 100644 --- a/utils/update.py +++ b/utils/update.py @@ -97,6 +97,10 @@ def copy_to_update(): paths = ['js','models','controllers','libs','static','templates','utils'] for path in paths: force_copy_files(os.path.join(dr_path, path),os.path.join(base_path, path)) + try: + shutil.copy(os.path.join(dr_path, 'app.py'), os.path.join(base_path, 'app.py')) # 复制文件 + except Exception as e: + logger.info(f'更新app.py发生错误:{e}') return True def download_new_version():