reywechat 1.0.50__py3-none-any.whl → 1.0.52__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- reywechat/rreceive.py +5 -5
- reywechat/rsend.py +1 -1
- reywechat/rwechat.py +5 -5
- {reywechat-1.0.50.dist-info → reywechat-1.0.52.dist-info}/METADATA +1 -1
- {reywechat-1.0.50.dist-info → reywechat-1.0.52.dist-info}/RECORD +7 -7
- {reywechat-1.0.50.dist-info → reywechat-1.0.52.dist-info}/WHEEL +0 -0
- {reywechat-1.0.50.dist-info → reywechat-1.0.52.dist-info}/licenses/LICENSE +0 -0
reywechat/rreceive.py
CHANGED
@@ -524,7 +524,7 @@ class WeChatMessage(WeChatBase):
|
|
524
524
|
### Mark.
|
525
525
|
if is_call_next:
|
526
526
|
call_next_mark_value = f'{self.user}_{self.room}'
|
527
|
-
self.receiver.
|
527
|
+
self.receiver.mark(call_next_mark_value, 'is_call_next')
|
528
528
|
|
529
529
|
self._is_call = is_call
|
530
530
|
self._call_text = call_text
|
@@ -590,12 +590,12 @@ class WeChatMessage(WeChatBase):
|
|
590
590
|
|
591
591
|
# Judge.
|
592
592
|
call_next_mark_value = f'{self.user}_{self.room}'
|
593
|
-
self._is_last_call =
|
593
|
+
self._is_last_call = self.receiver.mark.is_marked(call_next_mark_value, 'is_call_next')
|
594
594
|
|
595
595
|
# Mark.
|
596
596
|
if self._is_last_call:
|
597
597
|
call_next_mark_value = f'{self.user}_{self.room}'
|
598
|
-
self.receiver.
|
598
|
+
self.receiver.mark.remove(call_next_mark_value, 'is_call_next')
|
599
599
|
|
600
600
|
return self.is_last_call
|
601
601
|
|
@@ -1125,7 +1125,7 @@ class WechatReceiver(WeChatBase):
|
|
1125
1125
|
self.queue: Queue[WeChatMessage] = Queue()
|
1126
1126
|
self.handlers: list[Callable[[WeChatMessage], Any]] = []
|
1127
1127
|
self.started: bool | None = False
|
1128
|
-
self.
|
1128
|
+
self.mark = Mark()
|
1129
1129
|
self.trigger = WeChatTrigger(self)
|
1130
1130
|
|
1131
1131
|
# Start.
|
@@ -1238,7 +1238,7 @@ class WechatReceiver(WeChatBase):
|
|
1238
1238
|
handler(message)
|
1239
1239
|
|
1240
1240
|
# Log.
|
1241
|
-
self.wechat.
|
1241
|
+
self.wechat.error.log_receive(message)
|
1242
1242
|
|
1243
1243
|
|
1244
1244
|
# Thread pool.
|
reywechat/rsend.py
CHANGED
reywechat/rwechat.py
CHANGED
@@ -77,7 +77,7 @@ class WeChat(WeChatBase):
|
|
77
77
|
## Instance.
|
78
78
|
self.client = WeChatClient(self)
|
79
79
|
self.cache = WeChatCache(self)
|
80
|
-
self.
|
80
|
+
self.error = WeChatLog(self)
|
81
81
|
self.receiver = WechatReceiver(self, max_receiver, call_name)
|
82
82
|
self.trigger = self.receiver.trigger
|
83
83
|
self.sender = WeChatSender(self)
|
@@ -145,7 +145,7 @@ class WeChat(WeChatBase):
|
|
145
145
|
"""
|
146
146
|
|
147
147
|
# Handle parameter.
|
148
|
-
result = self.
|
148
|
+
result = self.error.rrlog.print_colour
|
149
149
|
|
150
150
|
return result
|
151
151
|
|
@@ -161,6 +161,6 @@ class WeChat(WeChatBase):
|
|
161
161
|
"""
|
162
162
|
|
163
163
|
# Set.
|
164
|
-
self.
|
165
|
-
self.
|
166
|
-
self.
|
164
|
+
self.error.rrlog.print_colour = value
|
165
|
+
self.error.rrlog_print.print_colour = value
|
166
|
+
self.error.rrlog_file.print_colour = value
|
@@ -5,12 +5,12 @@ reywechat/rcache.py,sha256=7UsHHfgFOgxuSqlTSAO6CprgUUOeBCXYus0kxmRBQxk,908
|
|
5
5
|
reywechat/rclient.py,sha256=lc1CPle9h08mwP8NlJN0ybzcNJxtpV0ma6q6cz1RIxk,22518
|
6
6
|
reywechat/rdb.py,sha256=YHkW81RZIdHCt2vvjgFKOZxU-EHyVf9F_XT_nOc7jxg,47354
|
7
7
|
reywechat/rlog.py,sha256=4EsTgrgC05JvWeKAucUaWGga638CRRJISJN6qncBCAw,5249
|
8
|
-
reywechat/rreceive.py,sha256=
|
9
|
-
reywechat/rsend.py,sha256=
|
8
|
+
reywechat/rreceive.py,sha256=REeHY4MiiZDcQx9j0SbDYPRqqyJVfLtQUBDwhkQOPBs,36231
|
9
|
+
reywechat/rsend.py,sha256=aTmc1ycL8bon4KXoX7VpRWQKTsVER6f6bRLKWWvPspY,18049
|
10
10
|
reywechat/rtrigger.py,sha256=WdOQwobPdGPyyE9J-qtQFPd60713T0aWqKk02PLdCRE,4966
|
11
|
-
reywechat/rwechat.py,sha256=
|
11
|
+
reywechat/rwechat.py,sha256=g0pbprMPv_qWb_lGFrPDAWsJO4vPSIgFLkw0Y28CZUo,4751
|
12
12
|
reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
|
13
|
-
reywechat-1.0.
|
14
|
-
reywechat-1.0.
|
15
|
-
reywechat-1.0.
|
16
|
-
reywechat-1.0.
|
13
|
+
reywechat-1.0.52.dist-info/METADATA,sha256=ThSWIXwyuEA6nuOow9T1wKZRmXKQENSGOqjbU3AtdMk,1551
|
14
|
+
reywechat-1.0.52.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
15
|
+
reywechat-1.0.52.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
16
|
+
reywechat-1.0.52.dist-info/RECORD,,
|
File without changes
|
File without changes
|