Commit b71e52c3 authored by 黄奎's avatar 黄奎

页面修改

parent 1748f3ea
using Mall.CacheManager.AppletWeChat; using Mall.CacheManager.AppletWeChat;
using Mall.CacheManager.User; using Mall.CacheManager.User;
using Mall.Common.API;
using Mall.Common.Plugin; using Mall.Common.Plugin;
using Mall.Module.User; using Mall.Module.User;
using Mall.WebApi.Filter; using Mall.WebApi.Filter;
...@@ -11,8 +10,6 @@ using Newtonsoft.Json.Linq; ...@@ -11,8 +10,6 @@ using Newtonsoft.Json.Linq;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq;
using System.Net.Http;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
...@@ -97,14 +94,12 @@ namespace Mall.WebApi.Controllers.Adapay ...@@ -97,14 +94,12 @@ namespace Mall.WebApi.Controllers.Adapay
string openId = jobj.GetStringValue("FromUserName"); string openId = jobj.GetStringValue("FromUserName");
string MsgType = jobj.GetStringValue("MsgType"); string MsgType = jobj.GetStringValue("MsgType");
string Content = jobj.GetStringValue("Content"); string Content = jobj.GetStringValue("Content");
Common.Plugin.LogHelper.Write($"请求参数:: openId:{openId} MsgType:{MsgType} Content:{Content}" ); Common.Plugin.LogHelper.WriteInfo($"请求参数:: openId:{openId} MsgType:{MsgType} Content:{Content}" );
if (MsgType == "text" && !string.IsNullOrEmpty(openId) && !string.IsNullOrEmpty(Content) && Content.Contains("支付")) if (MsgType == "text" && !string.IsNullOrEmpty(openId) && !string.IsNullOrEmpty(Content) && Content.Contains("支付"))
{ {
Task.Run(() => Task.Run(() =>
{ {
Common.Plugin.LogHelper.WriteInfo($"消息_推送客服消息:{openId}");
string payInfoKey = CacheManager.DataStatistic.DataConstant.DATA_AliPay_Order + openId; string payInfoKey = CacheManager.DataStatistic.DataConstant.DATA_AliPay_Order + openId;
Common.Plugin.LogHelper.WriteInfo($"消息_推送客服消息:获取缓存");
var zfbPayList = UserReidsCache.GetOrderPay(payInfoKey); var zfbPayList = UserReidsCache.GetOrderPay(payInfoKey);
if (zfbPayList != null && zfbPayList.Count > 0) if (zfbPayList != null && zfbPayList.Count > 0)
{ {
...@@ -117,7 +112,6 @@ namespace Mall.WebApi.Controllers.Adapay ...@@ -117,7 +112,6 @@ namespace Mall.WebApi.Controllers.Adapay
pushUrlList.Add(item.PayInfo); pushUrlList.Add(item.PayInfo);
} }
} }
Common.Plugin.LogHelper.WriteInfo($"消息_删除缓存");
//删除缓存 //删除缓存
UserReidsCache.DeleteMiniAppUsetOpenId(payInfoKey); UserReidsCache.DeleteMiniAppUsetOpenId(payInfoKey);
SendMessage(openId, pushUrlList); SendMessage(openId, pushUrlList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment