|
@@ -415,11 +415,12 @@ class GeneralInvite(BaseTask, GeneralInviteAssets):
|
|
|
if is_select:
|
|
if is_select:
|
|
|
continue
|
|
continue
|
|
|
# 首先切换到不同的好友列表
|
|
# 首先切换到不同的好友列表
|
|
|
|
|
+ INVITE_FLAG_ON = (227, 193, 153)
|
|
|
while index == 0:
|
|
while index == 0:
|
|
|
self.screenshot()
|
|
self.screenshot()
|
|
|
- if self.appear(self.I_FLAG_1_ON):
|
|
|
|
|
|
|
+ if self.I_FLAG_1_ON.match_mean_color(self.device.image, INVITE_FLAG_ON, 10):
|
|
|
break
|
|
break
|
|
|
- if self.appear_then_click(self.I_FLAG_1_OFF, interval=1):
|
|
|
|
|
|
|
+ if self.click(self.I_FLAG_1_OFF, interval=1):
|
|
|
continue
|
|
continue
|
|
|
while index == 1:
|
|
while index == 1:
|
|
|
self.screenshot()
|
|
self.screenshot()
|