File tree Expand file tree Collapse file tree
efb_wechat_comwechat_slave Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN python -m venv --copies /app/venv; \
1212 pip3 install git+https://github.com/QQ-War/efb-keyword-reply.git; \
1313 pip3 install git+https://github.com/QQ-War/efb_message_merge.git; \
1414 pip3 install --no-deps --force-reinstall Pillow; \
15- pip3 install --ignore-installed PyYAML TgCrypto simplejson
15+ pip3 install --ignore-installed PyYAML TgCrypto
1616
1717FROM python:alpine AS prod
1818
Original file line number Diff line number Diff line change @@ -281,7 +281,10 @@ def efb_share_link_wrapper(text: str) -> Message:
281281 text = '未解密表情消息 ,请在手机端查看' ,
282282 )
283283 elif type == 19 : # 合并转发的聊天记录
284- msg_title = xml .xpath ('/msg/appmsg/title/text()' )[0 ]
284+ try :
285+ msg_title = xml .xpath ('/msg/appmsg/title/text()' )[0 ]
286+ except :
287+ msg_title = ""
285288 forward_content = xml .xpath ('/msg/appmsg/des/text()' )[0 ]
286289 result_text += f"{ msg_title } \n \n { forward_content } "
287290 efb_msg = Message (
@@ -580,8 +583,22 @@ def efb_other_wrapper(text: str) -> Union[Message, None]:
580583 elif str (xml .xpath ('/sysmsg/todo/op/text()' )[0 ]) == "1" :
581584 efb_msg = efb_text_simple_wrapper ("[撤回了群待办]" )
582585 elif msg_type == "paymsg" :
586+ try :
587+ paymsg_type = str (xml .xpath ('/sysmsg/paymsg/PayMsgType/text()' )[0 ])
588+ except :
589+ paymsg_type = ""
590+ if paymsg_type == "9" :
591+ status = xml .xpath ('/sysmsg/paymsg/status/text()' )[0 ]
592+ displayname = xml .xpath ('/sysmsg/paymsg/displayname/text()' )[0 ]
593+ if str (status ) == "0" :
594+ efb_msg = efb_text_simple_wrapper (f"[{ displayname } 进入扫码支付]" )
595+ if str (status ) == "1" :
596+ efb_msg = efb_text_simple_wrapper (f"[{ displayname } 完成了扫码支付]" )
597+ elif str (status ) == "2" :
598+ efb_msg = efb_text_simple_wrapper (f"[{ displayname } 取消了扫码支付]" )
583599 if "待接收" in text and "转账" in text :
584600 efb_msg = efb_text_simple_wrapper ("[你有一笔待接收的转账]" )
601+
585602 elif msg_type == "carditemmsg" :
586603 msg_type = xml .xpath ('/sysmsg/carditemmsg/msg_type/text()' )[0 ]
587604 if str (msg_type ) == "15" :
You can’t perform that action at this time.
0 commit comments