Skip to content

Commit 05678bb

Browse files
committed
Merge branch 'broken' of https://github.com/LagrangeDev/lagrange-python into broken
2 parents 8f17d1c + 8f7ea65 commit 05678bb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lagrange/client/server_push/msg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async def msg_push_handler(client: "Client", sso: SSOPacket):
129129
pkg.response_head.to_uin,
130130
pb.info.to_uid,
131131
pb.info.verify,
132-
pb.info.source,
132+
pb.info.source or pb.info.source_new,
133133
)
134134
elif sub_typ == 138: # friend recall
135135
pb = PBFriendRecall.decode(pkg.message.buf2)

lagrange/info/app.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .serialize import JsonSerializer
66

77

8-
_T = TypeVar('_T', bound=dict[str, Union[int, str]])
8+
_T = TypeVar("_T", bound=dict[str, Union[int, str]])
99
_trans_map = {
1010
"SsoVersion": "pt_os_version",
1111
"WtLoginSdk": "wtlogin_sdk",
@@ -21,8 +21,8 @@ def _translate_appinfo(s: _T) -> _T:
2121
out[_trans_map[k]] = v
2222
else:
2323
k = re.sub(
24-
r'([A-Z])([^A-Z]+)',
25-
'_\0',
24+
r"([A-Z])([^A-Z]+)",
25+
r"_\1\2",
2626
k
2727
).lstrip("_").lower()
2828
out[k] = v

lagrange/pb/status/friend.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class PBFriendRecall(ProtoStruct):
1717
class FriendRequestInfo(ProtoStruct):
1818
to_uid: str = proto_field(1)
1919
from_uid: str = proto_field(2)
20+
source_new :str = proto_field(5)
2021
verify: str = proto_field(10) # 验证消息:我是...
2122
source: str = proto_field(11)
2223

0 commit comments

Comments
 (0)