mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 08:45:56 +08:00
feat: support disable version check (#173)
This commit is contained in:
parent
056898bf21
commit
fe688b505a
@ -19,6 +19,14 @@ class VersionApi(Resource):
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
check_update_url = current_app.config['CHECK_UPDATE_URL']
|
check_update_url = current_app.config['CHECK_UPDATE_URL']
|
||||||
|
|
||||||
|
if not check_update_url:
|
||||||
|
return {
|
||||||
|
'version': '0.0.0',
|
||||||
|
'release_date': '',
|
||||||
|
'release_notes': '',
|
||||||
|
'can_auto_update': False
|
||||||
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.get(check_update_url, {
|
response = requests.get(check_update_url, {
|
||||||
'current_version': args.get('current_version')
|
'current_version': args.get('current_version')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user