修复当miniOSversion不存在引发的异常

dependabot/npm_and_yarn/fir_admin/ws-5.2.3
youngS 3 years ago
parent aa33e5640b
commit 7fba632390
  1. 6
      fir_ser/api/utils/app/apputils.py

@ -157,10 +157,10 @@ def SaveAppInfos(app_file_name, user_obj, appinfo, bundle_id, app_img, short, si
"app_id": appmobj, "app_id": appmobj,
"icon_url": app_img, "icon_url": app_img,
"release_id": app_file_name.split(".")[0], "release_id": app_file_name.split(".")[0],
"build_version": appinfo.get("version"), "build_version": appinfo.get("version","latest"),
"app_version": appinfo.get("versioncode"), "app_version": appinfo.get("versioncode","latest"),
"release_type": get_release_type(app_file_name, appinfo), "release_type": get_release_type(app_file_name, appinfo),
"minimum_os_version": appinfo.get("miniOSversion", None), "minimum_os_version": appinfo.get("miniOSversion", 'latest'),
"binary_size": size, "binary_size": size,
"is_master": True, "is_master": True,
"changelog": appinfo.get("changelog", ''), "changelog": appinfo.get("changelog", ''),

Loading…
Cancel
Save