python学习
This commit is contained in:
@@ -14,4 +14,10 @@ class UrlManager(object):
|
||||
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 )
|
||||
return UrlManager.buildUrl( path )
|
||||
|
||||
@staticmethod
|
||||
def buildImageUrl( path ):
|
||||
app_config = app.config['APP']
|
||||
url = app_config['domain'] + app.config['UPLOAD']['prefix_url'] + path
|
||||
return url
|
||||
Reference in New Issue
Block a user