同时退款并发问题

This commit is contained in:
“wanyongkang”
2021-04-03 14:49:06 +08:00
parent 98449df2ba
commit 79f737a741

View File

@@ -859,6 +859,8 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
public async Task<ApiResult> Refund(int userId, string account)
{
using (await _mutex1.LockAsync())
{
var reason = "";
if(account.Contains("-")){
@@ -989,6 +991,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
return new ApiResult(1);
}
}
public async Task<ApiResult> CaclRefund(int userId, string account)
{