Bläddra i källkod

添加返回套餐id

linhaohong 1 år sedan
förälder
incheckning
a3f54e0dfa
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      AdminController/UnicomManageController.py

+ 2 - 1
AdminController/UnicomManageController.py

@@ -830,7 +830,7 @@ class UnicomManageControllerView(View):
         card_type = ud_qs[0]['card_type']
         if card_type == 0 or card_type == 3:
             o_qs = UnicomComboOrderInfo.objects.filter(iccid=iccid) \
-                .values('status', 'flow_total_usage', 'flow_exceed', 'activation_time', 'expire_time',
+                .values('id', 'status', 'flow_total_usage', 'flow_exceed', 'activation_time', 'expire_time',
                         'combo__combo_name', 'combo__flow_total', 'updated_time') \
                 .order_by('created_time')
             if not o_qs:
@@ -867,6 +867,7 @@ class UnicomManageControllerView(View):
             status_dict = {0: "待使用", 1: "使用中", 2: "已失效"}
             status = status_dict.get(item['status'])
             package_list.append({
+                'id': item['id'],
                 'packageName': item['combo__combo_name'],
                 'status': status,
                 'flowTotal': flow_total,