优化代码

dependabot/npm_and_yarn/fir_admin/url-parse-1.5.10
MMXX 3 years ago
parent 9572382a9e
commit 869d5ee7bb
  1. 2
      fir_client/vue.config.js
  2. 2
      fir_ser/api/views/apps.py
  3. 2
      fir_ser/api/views/supersign.py

@ -82,7 +82,7 @@ if (page) {
}
}
const version='1.3.9';
const version='1.4.0';
const pro_base_env = {
baseUrl: 'https://flyapps.cn',

@ -72,9 +72,11 @@ class AppsView(APIView):
"android_count": Apps.objects.filter(type=0, user_id=request.user).values('app_id').count()}
android_app_ids = Apps.objects.filter(**{"user_id": request.user, "type": 0}).values('app_id')
android_app_ids = [app_dict.get('app_id') for app_dict in android_app_ids]
res.hdata["android_today_hits_count"] = get_app_today_download_times(android_app_ids)
ios_app_ids = Apps.objects.filter(**{"user_id": request.user, "type": 1}).values('app_id')
ios_app_ids = [app_dict.get('app_id') for app_dict in ios_app_ids]
res.hdata["ios_today_hits_count"] = get_app_today_download_times(ios_app_ids)
all_hits_obj = Apps.objects.filter(user_id=request.user).aggregate(count_hits=Sum('count_hits'))

@ -54,7 +54,7 @@ class DeveloperView(APIView):
if issuer_id:
developer_obj = developer_obj.filter(
Q(developerappid__app_id__bundle_id=issuer_id, developerappid__app_id__user_id=request.user) | Q(
issuer_id=issuer_id))
issuer_id=issuer_id) | Q(description=issuer_id))
page_obj = PageNumber()
app_page_serializer = page_obj.paginate_queryset(queryset=developer_obj.order_by("-updated_time"),

Loading…
Cancel
Save