Browse Source

Merge branch 'develop' of http://18t7i08736.yicp.fun:10018/Coder/24Hour.Service into develop

develop
胡超1 2 years ago
parent
commit
117fc1e5c2
  1. 2
      24Hour/Controllers/Common/LawyerservicesController.cs
  2. 8
      24Hour/Controllers/Common/WebSocketController.cs
  3. 12
      24Hour/WechatMessagerClient.cs
  4. 2
      24Hour/appsettings.json

2
24Hour/Controllers/Common/LawyerservicesController.cs

@ -130,7 +130,7 @@ namespace _24Hour.Controllers.Common
{ {
var jcguserdata = await _db.Queryable<App_Sys_UserModel>() var jcguserdata = await _db.Queryable<App_Sys_UserModel>()
.Where(q => q.usertype == 0 && q.messages ==true && q.unitCode == Lawyerdata.unitCode).ToListAsync(); .Where(q => q.usertype == 0 && q.messages ==true && q.unitCode == Lawyerdata.unitCode).ToListAsync();
if (jcguserdata != null) if (jcguserdata.Count>0)
{ {
foreach (var item in jcguserdata) foreach (var item in jcguserdata)
{ {

8
24Hour/Controllers/Common/WebSocketController.cs

@ -554,17 +554,19 @@ namespace _24Hour.Controllers.Common
[HttpGet] [HttpGet]
[Route("gzhwxts")] [Route("gzhwxts")]
[AllowAnonymous] [AllowAnonymous]
public async Task<bool> gzhwxts(string openId) public async Task<string> gzhwxts(string openId)
{ {
try try
{ {
//ozRTw0uB1w-Puu73araMIHrdKlSQ //ozRTw0uB1w-Puu73araMIHrdKlSQ
_wechatMessagerClient.gzhwxts(openId, "律师","19536521444","查阅xxx人卷宗",""); var sss= _wechatMessagerClient.gzhwxts(openId, "律师","19536521444","查阅xxx人卷宗","");
return sss;
} }
catch (Exception) catch (Exception)
{ {
} }
return true; return "失败";
} }
} }

12
24Hour/WechatMessagerClient.cs

@ -274,7 +274,7 @@ namespace _24Hour
/// 微信公众号消息提醒,推送检察官 /// 微信公众号消息提醒,推送检察官
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public bool gzhwxts(string? useropenId, string? name,string? phone, string? matter, string? attention) public string gzhwxts(string? useropenId, string? name,string? phone, string? matter, string? attention)
{ {
try try
{ {
@ -328,18 +328,20 @@ namespace _24Hour
}; };
var re = HttpHelper.Post(posturl, msg); var re = HttpHelper.Post(posturl, msg);
if (re.Jsonstr("errcode") == "0") if (re.Jsonstr("errcode") == "0")
return true; return "成功";
return false; return $"失败:{re}";
} }
catch (Exception ex) catch (Exception ex)
{ {
return $"{ex.Message}";
} }
return true; return "成功";
} }
catch (Exception ex) catch (Exception ex)
{ {
return $"{ex.Message}";
} }
return false; return "失败";
} }
} }

2
24Hour/appsettings.json

@ -8,7 +8,7 @@
"AllowedHosts": "*", "AllowedHosts": "*",
"ConnectionStrings": { "ConnectionStrings": {
"DBType": "MySQL", "DBType": "MySQL",
"MySQLConnString": "server=127.0.0.1;Database=equipmentrearend;Uid=root;Pwd=insght;Allow User Variables=True;SslMode=none;AllowPublicKeyRetrieval=True;" "MySQLConnString": "server=192.168.0.251;Database=equipmentrearend;Uid=root;Pwd=sa@admin;Allow User Variables=True;SslMode=none;AllowPublicKeyRetrieval=True;"
}, },
//JwtConfig //JwtConfig
"JwtConfiguration": { "JwtConfiguration": {

Loading…
Cancel
Save