Prechádzať zdrojové kódy

Merge pull request #1933 from llbai/master

fix:修复3人组队“邀请频繁”问题、修复向上滑动无法找到困28入口问题
huangrunheng 1 mesiac pred
rodič
commit
c291deb56f

+ 2 - 0
tasks/Component/GeneralInvite/general_invite.py

@@ -481,6 +481,8 @@ class GeneralInvite(BaseTask, GeneralInviteAssets):
             logger.warning('Invite friend 1 failed')
         # 如果是邀请第二个人
         if config.invite_number == InviteNumber.TWO:
+            # 确定邀请前等待一段时间,避免游戏弹出邀请过快
+            sleep(3)
             success = self.invite_friend(config.friend_2, config.find_mode)
             if not success:
                 logger.warning('Invite friend 2 failed')

+ 1 - 1
tasks/Exploration/base.py

@@ -162,7 +162,7 @@ class BaseExploration(GameUi, GeneralBattle, GeneralRoom, GeneralInvite, Replace
             if self.appear_then_click(self.I_UI_CONFIRM_SAMLL, interval=1):
                 continue
             self.device.click_record_clear()
-            self.swipe(self.S_SWIPE_LEVEL_UP)
+            self.swipe(self.S_SWIPE_LEVEL_DOWN)
             swipeCount += 1
             debug_info = f"Swiped {swipeCount} times, current exploration level: {text1}"
             logger.info(debug_info)