修改支付

This commit is contained in:
zpc 2024-10-14 20:58:36 +08:00
parent b86f3df2bc
commit b1f56c46b9
2 changed files with 2 additions and 1 deletions

View File

@ -241,6 +241,7 @@ namespace HuanMeng.MiaoYu.Code.Payment
// 通过索引位置缓存各个部分的起始位置
int tIndex = customString.IndexOf('T');
int uIndex = customString.IndexOf('U');
int pIndex = customString.IndexOf('P');
int mIndex = customString.IndexOf('M');

View File

@ -25,7 +25,7 @@ namespace HuanMeng.MiaoYu.Code.Payment.WeChat
public async Task<(string orderId, string order)> CreateOrder(int productId, string productName, decimal price, params object[] args)
{
//var orderId = GenerateTimestampIdWithOffset();
var orderId = PaymentExtend.GenerateCustomString("WMP", userId, productId, "002");
var orderId = PaymentExtend.GenerateCustomString("XCX", userId, productId, "002");
//var client = new WechatTenpayClient(wechatTenpayClientOptions);
/* 以 JSAPI 统一下单接口为例 */
string sign = $"{tenantInfo.Identifier}{orderId}{userId}";