Sfoglia il codice sorgente

刷新机器人注册时间机制

DavidLiu 3 mesi fa
parent
commit
053d30ac95
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/core/voip/bot.py

+ 3 - 2
src/core/voip/bot.py

@@ -599,8 +599,9 @@ class BotAgent:
         _hour = datetime.now().strftime('%Y%m%d%H')
         _lock = self.cache.lock_register_per_hours(_hour)
         if _lock and len(self.accounts) == len(self.user_part_range):
-            self.cache.set_register_per_hours(_hour)
-            self.create_account(recreate=True)
+            self.logger.info('liuwei::debugger::register_per_hours come in ')
+            pass
+            # self.create_account(recreate=True)
 
     def transfer(self, user_part, call_id, device_id, service_id='00000000000000000'):
         if self.acd_service: