Ver Fonte

优化流量推送类型

zhangdongming há 3 anos atrás
pai
commit
24c8b2770a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Controller/ComboCron/ComboCronPushController.py

+ 1 - 1
Controller/ComboCron/ComboCronPushController.py

@@ -158,7 +158,7 @@ class ComboCronPushView(View):
                 total = cls.flow_split(item.flow_total)
                 usable = cls.flow_split(item.flow_total - item.flow_total_usage)
                 msg = False
-                if item.type != 0 and item != 1:
+                if item.type != 0 and item.type != 1:
                     unicom_order_qs = UnicomComboOrderInfo.objects.filter(id=item.combo_order_id) \
                         .values('combo__combo_name')
                     combo_name = unicom_order_qs.first()['combo__combo_name'] if unicom_order_qs.exists() else ''