From a622695a0cd6ea5aa63869f5c1a891e589909f48 Mon Sep 17 00:00:00 2001
From: 小飞侠 <8277136+liaoxujun@user.noreply.gitee.com>
Date: 星期二, 07 四月 2026 16:14:57 +0800
Subject: [PATCH] no message
---
cylsg/cylsg.Application/Users/UserAppService.cs | 4 ++--
cylsg/cylsg.Application/Transfer/UserTransfer.cs | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cylsg/cylsg.Application/Transfer/UserTransfer.cs b/cylsg/cylsg.Application/Transfer/UserTransfer.cs
index 2243c13..d23f512 100644
--- a/cylsg/cylsg.Application/Transfer/UserTransfer.cs
+++ b/cylsg/cylsg.Application/Transfer/UserTransfer.cs
@@ -102,8 +102,8 @@
IsGuDing = true;
}
}
-
- if ((uw.TiXianZonge - uw.YiTiXianJine-(IsGuDing?300:0)) < Money)
+
+ if (((uw.TiXianZonge??0) - (uw.YiTiXianJine??0)-(IsGuDing?300:0)) < Money)
{
if(IsGuDing)
{
diff --git a/cylsg/cylsg.Application/Users/UserAppService.cs b/cylsg/cylsg.Application/Users/UserAppService.cs
index 07f0d41..aea49ae 100644
--- a/cylsg/cylsg.Application/Users/UserAppService.cs
+++ b/cylsg/cylsg.Application/Users/UserAppService.cs
@@ -74,7 +74,7 @@
}
}
userDto.userWorker.IsLingHuoYongGong = IsGuDing;
- decimal ab = userDto.userWorker.TiXianZonge ?? 0 - userDto.userWorker.YiTiXianJine ?? 0 ;
+ decimal ab = (userDto.userWorker.TiXianZonge ?? 0) - (userDto.userWorker.YiTiXianJine ?? 0 );
userDto.userWorker.Balance =ab < 0 ? 0 : ab;
if (IsGuDing)
{
@@ -338,7 +338,7 @@
}
userDto.userWorker.IsLingHuoYongGong = IsGuDing;
- decimal ab = userDto.userWorker.TiXianZonge ?? 0 - userDto.userWorker.YiTiXianJine ?? 0;
+ decimal ab = (userDto.userWorker.TiXianZonge ?? 0) - (userDto.userWorker.YiTiXianJine ?? 0);
userDto.userWorker.Balance = ab < 0 ? 0 : ab;
if (IsGuDing)
{
--
Gitblit v1.9.1