Sfoglia il codice sorgente

优化公共函数

peng 3 anni fa
parent
commit
5197f324be
1 ha cambiato i file con 3 aggiunte e 6 eliminazioni
  1. 3 6
      Service/CommonService.py

+ 3 - 6
Service/CommonService.py

@@ -706,11 +706,8 @@ GCqvlyw5dfxNA+EtxNE2wCW/LW7ENJlACgcfgPlBZtpLheWoZB/maw4=
     @staticmethod
     def get_domain_name():
         """
-        按时间单位切割时间段
-        @param start_time: 开始时间
-        @param end_time: 结束时间
-        @param time_unit: 时间单位
-        @return: time_list 切割后的时间列表
+        获取域名
+        @return: domain_name_list 切割后的时间列表
         """
 
         if CONFIG_INFO == CONFIG_TEST:
@@ -724,7 +721,7 @@ GCqvlyw5dfxNA+EtxNE2wCW/LW7ENJlACgcfgPlBZtpLheWoZB/maw4=
     @staticmethod
     def list_sort(e):
         """
-        按时间单位切割时间段
+        列表排序
         @param e: 列表元素
         """
         return sorted(e, key=lambda item: -item['count'])