Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a1eca0b

Browse files
committed
写入excel的bug修复
1 parent 47abf32 commit a1eca0b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

adb微信加好友/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ def add_friends(self, phone):
564564

565565
if self._adb.find_node_by_text('查找失败'):
566566
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, "查找失败")
568568
self._adb.adb_put_back()
569569

570570
# 查找成功
@@ -575,13 +575,13 @@ def add_friends(self, phone):
575575

576576
if not self._adb.find_node_by_text('发送添加朋友申请'):
577577
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, "发送失败")
579579

580580
else:
581581
self._adb.click_by_text_after_refresh("发送")
582582

583583
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, "发送成功")
585585
time.sleep(2)
586586
self._adb.adb_put_back()
587587
if self._adb.find_node_by_text('添加到通讯录'):
@@ -592,7 +592,7 @@ def add_friends(self, phone):
592592

593593
elif self._adb.find_node_by_text('发消息'):
594594
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, "已经是好友")
596596
self._adb.adb_put_back()
597597

598598
# elif self._adb.find_node_by_text('同时拥有微信和企业微信'):
@@ -602,7 +602,7 @@ def add_friends(self, phone):
602602

603603
elif self._adb.find_node_by_text('该用户不存在') or self._adb.find_node_by_text('被搜帐号状态异常,无法显示'):
604604
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, "已经是好友")
606606

607607
# 清空已输入的字符
608608
self.clean_phone()

0 commit comments

Comments
 (0)