From 00c11cafcf2592632d6578981a4fbfa4efe3bff3 Mon Sep 17 00:00:00 2001 From: vapao Date: Wed, 8 Sep 2021 00:19:17 +0800 Subject: [PATCH] Release v3.0.1-beta.9 --- spug_api/apps/account/management/commands/update.py | 4 +++- spug_api/spug/settings.py | 2 +- spug_api/tools/migrate.py | 2 +- spug_web/src/libs/index.js | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/spug_api/apps/account/management/commands/update.py b/spug_api/apps/account/management/commands/update.py index 4821792e..f08cb972 100644 --- a/spug_api/apps/account/management/commands/update.py +++ b/spug_api/apps/account/management/commands/update.py @@ -76,4 +76,6 @@ def handle(self, *args, **options): self.stdout.write(self.style.SUCCESS('''升级成功,请自行重启服务,如果通过官方文档安装一般重启命令为 Docker: docker restart spug Centos: systemctl restart supervisord - Ubuntu: systemctl restart supervisor''')) + Ubuntu: systemctl restart supervisor + ''')) + self.stderr.write(self.style.WARNING(f'最后别忘了刷新浏览器,确保系统设置/关于里的api与web版本一致哦~')) diff --git a/spug_api/spug/settings.py b/spug_api/spug/settings.py index c915888e..48452b45 100644 --- a/spug_api/spug/settings.py +++ b/spug_api/spug/settings.py @@ -131,7 +131,7 @@ re.compile('/apis/.*'), ) -SPUG_VERSION = 'v3.0.1-beta.8' +SPUG_VERSION = 'v3.0.1-beta.9' # override default config try: diff --git a/spug_api/tools/migrate.py b/spug_api/tools/migrate.py index 337d8ccc..aa7de5b9 100644 --- a/spug_api/tools/migrate.py +++ b/spug_api/tools/migrate.py @@ -17,7 +17,7 @@ if __name__ == '__main__': version = sys.argv[1] - if version <= 'v3.0.1-beta.8': + if version <= 'v3.0.2': old_path = os.path.join(settings.BASE_DIR, 'repos') new_path = os.path.join(settings.REPOS_DIR) if not os.path.exists(new_path): diff --git a/spug_web/src/libs/index.js b/spug_web/src/libs/index.js index 9ab9e5fe..e8324f1a 100644 --- a/spug_web/src/libs/index.js +++ b/spug_web/src/libs/index.js @@ -10,4 +10,4 @@ export * from './functools'; export * from './router'; export const http = _http; export const history = _history; -export const VERSION = 'v3.0.1-beta.8'; +export const VERSION = 'v3.0.1-beta.9';