@@ -564,7 +564,7 @@ def add_friends(self, phone):
564
564
565
565
if self ._adb .find_node_by_text ('查找失败' ):
566
566
print (' <== 查找失败 <== ' )
567
- write_to_excel (phoe_tables , phone_can_write_index , phone_write_col , "查找失败" )
567
+ write_to_excel (phone_file_path , phone_can_write_index , phone_write_col , "查找失败" )
568
568
self ._adb .adb_put_back ()
569
569
570
570
# 查找成功
@@ -575,13 +575,13 @@ def add_friends(self, phone):
575
575
576
576
if not self ._adb .find_node_by_text ('发送添加朋友申请' ):
577
577
print (' <== 发送失败 <== ' )
578
- write_to_excel (phoe_tables , phone_can_write_index , phone_write_col , "发送失败" )
578
+ write_to_excel (phone_file_path , phone_can_write_index , phone_write_col , "发送失败" )
579
579
580
580
else :
581
581
self ._adb .click_by_text_after_refresh ("发送" )
582
582
583
583
print (' !! <== 发送成功 <== ' )
584
- write_to_excel (phoe_tables , phone_can_write_index , phone_write_col , "发送成功" )
584
+ write_to_excel (phone_file_path , phone_can_write_index , phone_write_col , "发送成功" )
585
585
time .sleep (2 )
586
586
self ._adb .adb_put_back ()
587
587
if self ._adb .find_node_by_text ('添加到通讯录' ):
@@ -592,7 +592,7 @@ def add_friends(self, phone):
592
592
593
593
elif self ._adb .find_node_by_text ('发消息' ):
594
594
print (' <== 已经是好友 无需再次添加 <== ' )
595
- write_to_excel (phoe_tables , phone_can_write_index , phone_write_col , "已经是好友" )
595
+ write_to_excel (phone_file_path , phone_can_write_index , phone_write_col , "已经是好友" )
596
596
self ._adb .adb_put_back ()
597
597
598
598
# elif self._adb.find_node_by_text('同时拥有微信和企业微信'):
@@ -602,7 +602,7 @@ def add_friends(self, phone):
602
602
603
603
elif self ._adb .find_node_by_text ('该用户不存在' ) or self ._adb .find_node_by_text ('被搜帐号状态异常,无法显示' ):
604
604
print (' <== 该用户不存在 或 帐号异常 <== ' )
605
- write_to_excel (phoe_tables , phone_can_write_index , phone_write_col , "已经是好友" )
605
+ write_to_excel (phone_file_path , phone_can_write_index , phone_write_col , "已经是好友" )
606
606
607
607
# 清空已输入的字符
608
608
self .clean_phone ()
0 commit comments