dc_policy.py 750 B

1234567891011121314151617181920212223242526272829303132
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. """
  4. 使用须知:
  5. 1.设备调整到时间模式 功率分档全部配置为100%
  6. 2.设备套餐页面配置(计费规则 + 订购套餐部分)
  7. 3.
  8. """
  9. import logging
  10. from typing import TYPE_CHECKING
  11. from apps.web.core.adapter.policy_common import PolicyCommon
  12. from apps.web.core.adapter.zhixia2 import ChargingZHIXIA2Box
  13. logger = logging.getLogger(__name__)
  14. if TYPE_CHECKING:
  15. pass
  16. class DCPOLICYBox(PolicyCommon, ChargingZHIXIA2Box):
  17. def start_device_realiable(self, order):
  18. return super(DCPOLICYBox, self).start_device_realiable(order)
  19. @property
  20. def look_at_money(self):
  21. return self.device.devTypeFeatures.get('look_at_money', True)