Skip to content

Commit f765bf4

Browse files
authored
Merge pull request #3019 from JeffreySu/Developer
更新 Sample,修改 AI 重新进入后的状态判断逻辑
2 parents cd6accb + da6aaf5 commit f765bf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Samples/All/Senparc.Weixin.Sample.CommonService/AI/MessageHandlers/CustomMessageHandler_AI.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ private async Task<IResponseMessageBase> AIChatAsync(RequestMessageBase requestM
111111
string prompt;
112112
bool storeHistory = true;
113113
bool judgeMultimodel = true;
114+
var oldChatStatus = chatStore.Status;
114115

115116
if (requestMessageText.Content.Equals("E", StringComparison.OrdinalIgnoreCase))
116117
{
@@ -152,7 +153,7 @@ private async Task<IResponseMessageBase> AIChatAsync(RequestMessageBase requestM
152153
judgeMultimodel = true;
153154
}
154155

155-
if (chatStore.Status == ChatStatus.Chat)
156+
if (chatStore.Status == oldChatStatus)
156157
{
157158
if (requestMessageText.Content.Equals("M", StringComparison.OrdinalIgnoreCase))
158159
{

0 commit comments

Comments
 (0)