From 2ccb8c94fcfe6891b6db60995e83cd7b54e389a6 Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期日, 29 九月 2024 17:33:23 +0800 Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/cylsg --- cylsg/cylsg.Application/Transfer/UserTransfer.cs | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/cylsg/cylsg.Application/Transfer/UserTransfer.cs b/cylsg/cylsg.Application/Transfer/UserTransfer.cs index 4446678..b9c320e 100644 --- a/cylsg/cylsg.Application/Transfer/UserTransfer.cs +++ b/cylsg/cylsg.Application/Transfer/UserTransfer.cs @@ -105,7 +105,7 @@ var UserTiXianDetailwork = new BaseRepository<UserTiXianDetail>(); var WeChatTransferOrderwork = new BaseRepository<WeChatTransferOrder>(); - if ((uw != null) && ((uw.TiXianZonge - uw.YiTiXianJine) >= Money)) + if ((uw != null) && (((uw.TiXianZonge??0) - (uw.YiTiXianJine??0)) >= Money)) { //婊¤冻鏉′欢锛屽彂璧锋敮浠� var TransferOrder = new WeChatTransferOrder @@ -185,10 +185,11 @@ ZhiChuShouRu = 0, YiTiXianJine = Money, WeChatTransferOrderID = TransferOrder.Id, + Remark = "鐢ㄦ埛鎻愮幇" }); //閽卞寘浣欓璋冩暣 - uw.YiTiXianJine += Money; + uw.YiTiXianJine = (uw.YiTiXianJine??0)+ Money; uw.UpDataBy = uw.UserId.ToString(); uw.UpDataTime = DateTime.Now; await rs.UpdateAsync(uw); @@ -211,6 +212,10 @@ + } + else + { + throw Oops.Oh("绯荤粺閿欒"); } } @@ -251,6 +256,7 @@ /// </summary> [AllowAnonymous] [HttpPost] + [ApiExplorerSettings(IgnoreApi = true)] public async Task<TransferOderOut> GetTransferOder(SearchTransferOder param) { @@ -293,7 +299,7 @@ /// <returns></returns> [AllowAnonymous] [HttpGet] - // [ApiExplorerSettings(IgnoreApi = true)] + [ApiExplorerSettings(IgnoreApi = true)] public async Task<bool> ReSendTransferOder([FromQuery] string ids) { var itmsRes = new BaseRepository<WeChatTransferOrder>(); -- Gitblit v1.9.1