From d3cb01c57f354ff3cd8557876eac61a48267c37d Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 3 May 2024 23:37:11 +0800 Subject: [PATCH] Update __init__.py --- plugins/wechatforward/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/wechatforward/__init__.py b/plugins/wechatforward/__init__.py index 5992c3b..53cc279 100644 --- a/plugins/wechatforward/__init__.py +++ b/plugins/wechatforward/__init__.py @@ -179,6 +179,7 @@ class WeChatForward(_PluginBase): continue self._wechat_token_pattern_confs[appid] = { + "remark": remark, "corpid": corpid, "appsecret": appsecret, "access_token": access_token, @@ -480,7 +481,7 @@ class WeChatForward(_PluginBase): }, { 'component': 'td', - 'text': history.get("appid") + 'text': f"{history.get('appid')}{history.get('remark')}" }, { 'component': 'td', @@ -887,6 +888,7 @@ class WeChatForward(_PluginBase): history = self.get_data('history') or [] history.append({ "appid": appid, + "remark": f"({self._wechat_token_pattern_confs.get(appid).get('remark')})" if self._wechat_token_pattern_confs.get(appid).get('remark') else "" "title": title, "text": text, "userid": userid,