Commit b7016183 authored by 黄奎's avatar 黄奎

页面修改

parent e9367545
...@@ -108,7 +108,7 @@ namespace Mall.WebApi.Controllers.Adapay ...@@ -108,7 +108,7 @@ namespace Mall.WebApi.Controllers.Adapay
int MallBaseId = 17; int MallBaseId = 17;
string toUser = ""; string toUser = "";
string targetUrl = ""; string targetUrl = "";
toUser = "oyiQo5Gu34eaCeIAu8NG2NzM4ZIo"; toUser = "oyiQo5Dgzt7X3WZudvx3LaZmf2h0";
targetUrl = "https://qr.alipay.com/bax00835y0gx4mzmeycd0020"; targetUrl = "https://qr.alipay.com/bax00835y0gx4mzmeycd0020";
//toUser = base.AppletUserInfo.OpenId; //toUser = base.AppletUserInfo.OpenId;
//targetUrl = jobj.GetStringValue("targetUrl"); //targetUrl = jobj.GetStringValue("targetUrl");
...@@ -121,7 +121,7 @@ namespace Mall.WebApi.Controllers.Adapay ...@@ -121,7 +121,7 @@ namespace Mall.WebApi.Controllers.Adapay
token = Mall.Common.Pay.WeChatPat.TokenHelper.GetLXYToken(token, miniProgram.MiniAppId, miniProgram.MiniAppSecret); token = Mall.Common.Pay.WeChatPat.TokenHelper.GetLXYToken(token, miniProgram.MiniAppId, miniProgram.MiniAppSecret);
System.Threading.Tasks.Task.Run(() => WeiXinReidsCache.Set(miniProgram.MiniAppId, token)); System.Threading.Tasks.Task.Run(() => WeiXinReidsCache.Set(miniProgram.MiniAppId, token));
} }
bool flag = Common.Plugin.WeChatMessageHelper.SendCustomerMessage(token, toUser, targetUrl,out string message); bool flag = Common.Plugin.WeChatMessageHelper.SendCustomerMessage(token, toUser, postUrl, out string message);
return flag ? ApiResult.Success() : ApiResult.Failed(message: message); return flag ? ApiResult.Success() : ApiResult.Failed(message: message);
} }
......
using Mall.Common.API;
using Mall.WebApi.Filter;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Mall.WebApi.Controllers.Adapay
{
[Route("api/[controller]/[action]")]
[ApiExceptionFilter]
[ApiController]
[EnableCors("AllowCors")]
public class MessageController : ControllerBase
{
public ApiResult GetWeChatMessage()
{
return ApiResult.Success();
}
}
}
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