Browse Source

优化查询

peng 1 year ago
parent
commit
e402ccfd58
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/TransparentTransmissionPushController.py

+ 1 - 1
Controller/TransparentTransmissionPushController.py

@@ -43,7 +43,7 @@ class TransparentTransmissionPushView(View):
             return response.json(444)
         try:
             uid_push_qs = UidPushModel.objects.filter(userID=user_id).exclude(token_val=push_token).values(
-                'token_val', 'appBundleId', 'push_type', 'jg_token_val').distinct()
+                'token_val', 'appBundleId', 'push_type', 'jg_token_val').distinct().order_by('token_val')
             if not uid_push_qs.exists():
                 return response.json(173)
             LOGGER.info('推送列表:{}'.format(uid_push_qs))