python学习

This commit is contained in:
2019-08-02 18:24:04 +08:00
parent f1a754820c
commit 6569d29d7e
29 changed files with 736 additions and 378 deletions

View File

@@ -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