Commit e6c5e0b2 authored by liudong1993's avatar liudong1993

1

parent 62cf4f6f
......@@ -1401,6 +1401,11 @@ namespace Mall.Module.Product
{
var appletWeChatModel = programRepository.GetEntity(mallBaseId);
string token = CacheManager.AppletWeChat.WeiXinReidsCache.Get(appletWeChatModel.MiniAppId);
int IsNormalServer = Convert.ToInt32(Config.IsNormalServer);
if (IsNormalServer != 1)
{
token = "37_0-lYjcCk7K4srJ_SWIumrzRMY4s2UdttdugOEOLBoeQEOUEXga2hutyJrM7PC9QZkK9aXu7g4nE62J7YWfA2T6CKbq1_qPq0njfMvmk2_OZndOv-Rr1BIRhkqa6gFq71zo2Dr73T5tFe5QQ9LWQhAFAEPJ";
}
if (string.IsNullOrEmpty(token))
{
token = Common.Pay.WeChatPat.TokenHelper.GetLXYToken(token, appletWeChatModel.MiniAppId, appletWeChatModel.MiniAppSecret);
......
......@@ -5713,7 +5713,7 @@ namespace Mall.Module.User
int IsNormalServer = Convert.ToInt32(new ConfigurationBuilder().Add(new JsonConfigurationSource { Path = "appsettings.json" }).Build().GetSection("IsNormalServer").Value);
if (IsNormalServer != 1)
{
token = "37_Wqdr6PiecbnyvQKenIyOGyPGrXBZ7UOuRv0TaRwbscyTefDvUoi68KUVKfU4xrY2z6jK24swmQ1vsnR1EQFRapB-Do6L2eO8i-geeoGtRJa0hFIVHSSJaAK3Uk_lGyDcJf6ATCPJebtgjrz8WBQiAGAAFU";
token = "37_0-lYjcCk7K4srJ_SWIumrzRMY4s2UdttdugOEOLBoeQEOUEXga2hutyJrM7PC9QZkK9aXu7g4nE62J7YWfA2T6CKbq1_qPq0njfMvmk2_OZndOv-Rr1BIRhkqa6gFq71zo2Dr73T5tFe5QQ9LWQhAFAEPJ";
}
if (string.IsNullOrEmpty(token))
{
......@@ -5797,7 +5797,7 @@ namespace Mall.Module.User
int IsNormalServer = Convert.ToInt32(new ConfigurationBuilder().Add(new JsonConfigurationSource { Path = "appsettings.json" }).Build().GetSection("IsNormalServer").Value);
if (IsNormalServer != 1)
{
token = "37_Wqdr6PiecbnyvQKenIyOGyPGrXBZ7UOuRv0TaRwbscyTefDvUoi68KUVKfU4xrY2z6jK24swmQ1vsnR1EQFRapB-Do6L2eO8i-geeoGtRJa0hFIVHSSJaAK3Uk_lGyDcJf6ATCPJebtgjrz8WBQiAGAAFU";
token = "37_0-lYjcCk7K4srJ_SWIumrzRMY4s2UdttdugOEOLBoeQEOUEXga2hutyJrM7PC9QZkK9aXu7g4nE62J7YWfA2T6CKbq1_qPq0njfMvmk2_OZndOv-Rr1BIRhkqa6gFq71zo2Dr73T5tFe5QQ9LWQhAFAEPJ";
}
if (string.IsNullOrEmpty(token))
{
......
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