diff --git a/apps/system/views.py b/apps/system/views.py index 80bf647f..d8425819 100755 --- a/apps/system/views.py +++ b/apps/system/views.py @@ -600,4 +600,9 @@ class ApkView(MyLoggingMixin, ListCreateAPIView): config.set("apk", "version", vdata['version']) config.set("apk", "file", vdata['file']) config.write(open(os.path.join(settings.BASE_DIR, 'server/conf.ini'), 'w')) + from shutil import copyfile + try: + copyfile(settings.BASE_DIR + vdata['file'], settings.BASE_DIR + '/media/qyjy_ehs.apk') + except Exception: + pass return Response()