修复问题

This commit is contained in:
zpc 2024-11-27 16:57:39 +08:00
parent 0a56938ff3
commit 0ce8cdf92c
4 changed files with 17 additions and 4 deletions

View File

@ -32,7 +32,7 @@ namespace CloudGaming.Code.Config
appConfigDto.SignKey = AppConfig.TenantId.ToString("N"); appConfigDto.SignKey = AppConfig.TenantId.ToString("N");
appConfigDto.NightCardTips = $"22点30分至次日7点畅玩无消耗"; appConfigDto.NightCardTips = $"22点30分至次日7点畅玩无消耗";
appConfigDto.ChannelId = AppConfig.GameConfig.ChannelId; appConfigDto.ChannelId = AppConfig.GameConfig.ChannelId;
appConfigDto.BsUrl = AppConfig.GameConfig.BsUrl; appConfigDto.BsUrl = AppConfig.GameConfig.BsUrl.TrimEnd('/') + "/";
return appConfigDto; return appConfigDto;
} }

View File

@ -129,7 +129,7 @@ public static class PaymentExtend
} }
var _weChatConfig = cloudGamingBase.AppConfig.Payment.WeChatConfig ?? weChatConfig; var _weChatConfig = cloudGamingBase.AppConfig.Payment.WeChatConfig ?? weChatConfig;
var _wxClient = cloudGamingBase.AppConfig.Payment.WxClient ?? wxClient; var _wxClient = cloudGamingBase.AppConfig.Payment.WxClientContext ?? wxClient;
if (payment == "xcx") if (payment == "xcx")
{ {
if (cloudGamingBase._UserId == 0) if (cloudGamingBase._UserId == 0)

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CloudGaming.AppConfigModel
{
/// <summary>
/// 支付宝
/// </summary>
public class AliPayConfig : Alipay.EasySDK.Kernel.Config
{
}
}

View File

@ -18,7 +18,7 @@ namespace CloudGaming.AppConfigModel
/// <summary> /// <summary>
/// 支付宝支付数据 /// 支付宝支付数据
/// </summary> /// </summary>
public Alipay.EasySDK.Kernel.Config? AlipayConfig { get; set; } public AliPayConfig? AlipayConfig { get; set; }
/// <summary> /// <summary>
/// ///
@ -28,7 +28,7 @@ namespace CloudGaming.AppConfigModel
/// 微信支付客户端 /// 微信支付客户端
/// </summary> /// </summary>
[JsonIgnore] [JsonIgnore]
public WechatTenpayClient? WxClient public WechatTenpayClient? WxClientContext
{ {
get get
{ {