Skip to content

Commit

Permalink
fix: ID判断数据不一致BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Feb 5, 2024
1 parent da714dc commit 8e902f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/buildinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"sha": "b0a60fb", "timestamp": 1707118188}
{"sha": "da714dc", "timestamp": 1707118551}
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ var Environment = class {
// -- 版本数据 --
//
// 当前版本
BUILD_TIMESTAMP = 1707118188;
BUILD_TIMESTAMP = 1707118551;
// 当前版本 commit id
BUILD_VERSION = "b0a60fb";
BUILD_VERSION = "da714dc";
// -- 基础配置 --
/**
* @type {I18n | null}
Expand Down Expand Up @@ -2079,7 +2079,7 @@ async function msgHandleGroupMessage(message, context) {
}
let botName = context.SHARE_CONTEXT.currentBotName;
if (message.reply_to_message) {
if (message.reply_to_message.from.id === context.SHARE_CONTEXT.currentBotId) {
if (`${message.reply_to_message.from.id}` === context.SHARE_CONTEXT.currentBotId) {
return null;
} else if (ENV.EXTRA_MESSAGE_CONTEXT) {
context.SHARE_CONTEXT.extraMessageContext = message.reply_to_message;
Expand Down
2 changes: 1 addition & 1 deletion dist/timestamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1707118188
1707118551
2 changes: 1 addition & 1 deletion src/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async function msgHandleGroupMessage(message, context) {
// 处理群组消息,过滤掉AT部分
let botName = context.SHARE_CONTEXT.currentBotName;
if (message.reply_to_message ) {
if (message.reply_to_message.from.id === context.SHARE_CONTEXT.currentBotId) {
if (`${message.reply_to_message.from.id}` === context.SHARE_CONTEXT.currentBotId) {
return null;
} else if (ENV.EXTRA_MESSAGE_CONTEXT) {
context.SHARE_CONTEXT.extraMessageContext = message.reply_to_message;
Expand Down

0 comments on commit 8e902f3

Please sign in to comment.