guanhailong 2 سال پیش
والد
کامیت
530828b99d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      AdminController/VersionManagementController.py

+ 2 - 2
AdminController/VersionManagementController.py

@@ -143,8 +143,8 @@ class VersionManagement(View):
             companyCode = code[-1:]                         # 公司代码
             fileSize = file.size
             filePath = '/'.join(('static/otapack', mci, lang, file_name))
-            file_data = file.read()
-            fileMd5 = hashlib.md5(file_data).hexdigest()
+            # file_data = file.read()
+            fileMd5 = hashlib.md5(file_name).hexdigest()
             data_dict = {'mci': mci, 'lang': lang, 'ESN': ESN, 'max_ver': max_ver,  'channel': channel,
                          'resolutionRatio': resolutionRatio, 'Description': Description, 'status': status,
                          'version': version, 'softwareVersion': softwareVersion, 'code': code,