修改支付
This commit is contained in:
parent
b86f3df2bc
commit
b1f56c46b9
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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}";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user