super_signature
nineven 5 years ago
parent 9679d1d7fc
commit 9299e4af05
  1. 1
      .gitignore
  2. 6
      fir_ser/api/utils/storage/caches.py
  3. BIN
      fir_ser/files/head_img.jpeg
  4. 4
      fir_ser/fir_ser/settings.py

1
.gitignore vendored

@ -1,6 +1,5 @@
fir_ser/.idea/ fir_ser/.idea/
fir_ser/db.sqlite3 fir_ser/db.sqlite3
*.pyc *.pyc
fir_ser/files/
fir_ser/venv/ fir_ser/venv/
fir_client/.idea fir_client/.idea

@ -11,8 +11,10 @@ from django.utils import timezone
from fir_ser.settings import CACHE_KEY_TEMPLATE,SERVER_DOMAIN from fir_ser.settings import CACHE_KEY_TEMPLATE,SERVER_DOMAIN
from api.utils.storage.storage import Storage,LocalStorage from api.utils.storage.storage import Storage,LocalStorage
from api.utils.crontab.sync_cache import sync_download_times_by_app_id from api.utils.crontab.sync_cache import sync_download_times_by_app_id
from api.utils.crontab import run try:
from api.utils.crontab import run
except Exception as e:
print(e)
def get_download_url_by_cache(app_obj, filename, limit, isdownload=True,key='',udid=None): def get_download_url_by_cache(app_obj, filename, limit, isdownload=True,key='',udid=None):
now = time.time() now = time.time()
if isdownload is None: if isdownload is None:

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

@ -87,11 +87,11 @@ DATABASES = {
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'NAME': 'flyapp', 'NAME': 'flyapp',
'USER': 'flyuser', 'USER': 'flyuser',
'PASSWORD': 'flypwd00oo.1', 'PASSWORD': 'KGzKjZpWBp4R4RSa',
'HOST': '127.0.0.1', 'HOST': '127.0.0.1',
'PORT': '3306', 'PORT': '3306',
#设置MySQL的驱动 #设置MySQL的驱动
'options': {'init_command': 'SET storage_engine=INNODB'} 'OPTIONS': {'init_command': 'SET storage_engine=INNODB'}
} }
} }

Loading…
Cancel
Save