|
|
@@ -392,7 +392,7 @@ class GeneralInvite(BaseTask, GeneralInviteAssets):
|
|
|
recent_index = friend_class.index('最近')
|
|
|
while recent_index == 1:
|
|
|
self.screenshot()
|
|
|
- if self.appear(self.I_FLAG_2_ON):
|
|
|
+ if self.I_FLAG_2_ON.match_mean_color(self.device.image, self.I_FLAG_2_ON.mean_color, 10):
|
|
|
break
|
|
|
if self.appear_then_click(self.I_FLAG_2_OFF, interval=1):
|
|
|
continue
|
|
|
@@ -415,16 +415,15 @@ class GeneralInvite(BaseTask, GeneralInviteAssets):
|
|
|
if is_select:
|
|
|
continue
|
|
|
# 首先切换到不同的好友列表
|
|
|
- INVITE_FLAG_ON = (227, 193, 153)
|
|
|
while index == 0:
|
|
|
self.screenshot()
|
|
|
- if self.I_FLAG_1_ON.match_mean_color(self.device.image, INVITE_FLAG_ON, 10):
|
|
|
+ if self.I_FLAG_1_ON.match_mean_color(self.device.image, self.I_FLAG_1_ON.mean_color, 10):
|
|
|
break
|
|
|
if self.click(self.I_FLAG_1_OFF, interval=1):
|
|
|
continue
|
|
|
while index == 1:
|
|
|
self.screenshot()
|
|
|
- if self.appear(self.I_FLAG_2_ON):
|
|
|
+ if self.I_FLAG_2_ON.match_mean_color(self.device.image, self.I_FLAG_2_ON.mean_color, 10):
|
|
|
break
|
|
|
if self.appear_then_click(self.I_FLAG_2_OFF, interval=1):
|
|
|
continue
|