python学习

This commit is contained in:
2019-07-29 15:28:02 +08:00
parent 5ee5b5035c
commit 04327fbd47
18 changed files with 709 additions and 274 deletions

View File

@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import time
from application import app
class UrlManager(object):
def __init__(self):
pass
@@ -10,6 +11,7 @@ class UrlManager(object):
@staticmethod
def buildStaticUrl(path):
ver = "%s"%( 22222222 )
release_version = app.config.get('RELEASE_VERSION')
ver = "%s" % (int(time.time())) if not release_version else release_version
path = "/static" + path + "?ver=" + ver
return UrlManager.buildUrl( path )