Browse Source

微信消息推送不了接口调整

develop-lawyerExampaper
liujiaqiang 2 years ago
parent
commit
fa77f519c6
  1. 2
      24Hour/Controllers/Common/LawyerservicesController.cs
  2. 8
      24Hour/WechatMessagerClient.cs

2
24Hour/Controllers/Common/LawyerservicesController.cs

@ -269,7 +269,7 @@ namespace _24Hour.Controllers.Common
var Lawyerboldata = Lawyerbol.FirstOrDefault(); var Lawyerboldata = Lawyerbol.FirstOrDefault();
if (Lawyerboldata.state !=0) if (Lawyerboldata.state !=0)
{ {
result.IsSucceed = true; result.IsSucceed = false;
result.result = "数据已被其他人接收处理!"; result.result = "数据已被其他人接收处理!";
return result; return result;
} }

8
24Hour/WechatMessagerClient.cs

@ -106,12 +106,8 @@ namespace _24Hour
var thing5 = attention; var thing5 = attention;
if (!string.IsNullOrEmpty(matter) && matter.Length>20) if (!string.IsNullOrEmpty(matter) && matter.Length>20)
thing4 = matter.Substring(0, 17)+"..."; thing4 = matter.Substring(0, 17)+"...";
else
thing4 = "";
if (!string.IsNullOrEmpty(attention) && attention.Length > 20) if (!string.IsNullOrEmpty(attention) && attention.Length > 20)
thing5 = attention.Substring(0, 17) + "..."; thing5 = attention.Substring(0, 17) + "...";
else
thing5 = "";
msg = new msg = new
{ {
touser = useropenId, touser = useropenId,
@ -180,13 +176,9 @@ namespace _24Hour
var thing4 = matter; var thing4 = matter;
if (!string.IsNullOrEmpty(matter)&&matter.Length > 20) if (!string.IsNullOrEmpty(matter)&&matter.Length > 20)
thing4 = matter.Substring(0, 17) + "..."; thing4 = matter.Substring(0, 17) + "...";
else
thing4 = "";
var thing5 = reason; var thing5 = reason;
if (!string.IsNullOrEmpty(reason) && reason.Length > 20) if (!string.IsNullOrEmpty(reason) && reason.Length > 20)
thing5 = reason.Substring(0, 17) + "..."; thing5 = reason.Substring(0, 17) + "...";
else
thing5 = "";
msg = new msg = new
{ {
touser = useropenId, touser = useropenId,

Loading…
Cancel
Save