| | |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [UnitOfWork(false)] |
| | | public async Task<WxRechargeNotifyResult> WxRechargeNotify(WxRechargeNotifyInput input) |
| | | { |
| | | try |
| | |
| | | AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(10) |
| | | }); |
| | | |
| | | await CurrentUnitOfWork.SaveChangesAsync(); |
| | | await CurrentUnitOfWork.CompleteAsync(); |
| | | _logger.LogInformation("事务完成"); |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | await CurrentUnitOfWork.RollbackAsync(); |
| | | _logger.LogError($"微信支付回调异常:{ex.Message}", ex); |
| | | return new WxRechargeNotifyResult |
| | | { |
| | | Code = "FAIL", |