fix: optimize WeChat scan-login reply copy for H5 and PC
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c5fb4c7e58
commit
f53571aa48
@ -43,7 +43,9 @@ public class WeChatEventHandler(
|
|||||||
{
|
{
|
||||||
if (string.Equals(message.Event, "subscribe", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(message.Event, "subscribe", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
return BuildTextReply(message, "感谢关注");
|
return BuildTextReply(
|
||||||
|
message,
|
||||||
|
"感谢关注!点击底部菜单「登录注册」可注册或登录,「我要下单」可进入下单。");
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
@ -52,7 +54,9 @@ public class WeChatEventHandler(
|
|||||||
var customer = await customerRepository.GetByWechatOpenidAsync(openId, cancellationToken);
|
var customer = await customerRepository.GetByWechatOpenidAsync(openId, cancellationToken);
|
||||||
if (customer == null)
|
if (customer == null)
|
||||||
{
|
{
|
||||||
return BuildTextReply(message, "未绑定账号,请在公众号菜单注册账号或绑定已有账号。");
|
return BuildTextReply(
|
||||||
|
message,
|
||||||
|
"未绑定账号,请点击底部菜单「登录注册」完成注册或绑定已有账号。");
|
||||||
}
|
}
|
||||||
|
|
||||||
var payload = new WeChatLoginSessionPayload
|
var payload = new WeChatLoginSessionPayload
|
||||||
@ -72,10 +76,14 @@ public class WeChatEventHandler(
|
|||||||
|
|
||||||
if (string.Equals(message.Event, "subscribe", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(message.Event, "subscribe", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
return BuildTextReply(message, "感谢关注,请返回电脑端完成登录。");
|
return BuildTextReply(
|
||||||
|
message,
|
||||||
|
"感谢关注!扫码成功,请返回刚才的页面完成登录;也可点击底部菜单「登录注册」。");
|
||||||
}
|
}
|
||||||
|
|
||||||
return BuildTextReply(message, "扫码成功,请返回电脑端完成登录。");
|
return BuildTextReply(
|
||||||
|
message,
|
||||||
|
"扫码成功,请返回刚才的页面完成登录;也可点击底部菜单「登录注册」。");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string BuildTextReply(WeChatIncomingMessage message, string content)
|
private static string BuildTextReply(WeChatIncomingMessage message, string content)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user