From 9688bef754e56f63d0e6df3ab09148d716a55213 Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期三, 25 九月 2024 15:05:06 +0800 Subject: [PATCH] 修改提现设置 --- cylsg/cylsg.Web.Entry/cylsg.Web.Entry.csproj.user | 1 + cylsg/cylsg.Web.Entry/Properties/PublishProfiles/FolderProfile.pubxml | 21 +++++++++++++++++++++ cylsg/cylsg.Application/Transfer/UserTransfer.cs | 9 +++++++-- cylsg/cylsg.Web.Entry/Properties/PublishProfiles/FolderProfile.pubxml.user | 11 +++++++++++ cylsg/EzJob/StartUpcs.cs | 2 +- cylsg/cylsg.Web.Entry/.config/dotnet-tools.json | 12 ++++++++++++ 6 files changed, 53 insertions(+), 3 deletions(-) diff --git a/cylsg/EzJob/StartUpcs.cs b/cylsg/EzJob/StartUpcs.cs index dec56c5..ff8673f 100644 --- a/cylsg/EzJob/StartUpcs.cs +++ b/cylsg/EzJob/StartUpcs.cs @@ -18,7 +18,7 @@ services.AddSchedule(options => { - options.AddJob<WeChatJob>(concurrent: false, Triggers.PeriodMinutes(1)); // 涓茶Triggers.PeriodMinutes(1) + options.AddJob<WeChatJob>(concurrent: false, Triggers.PeriodMinutes(5)); // 涓茶Triggers.PeriodMinutes(1) options.AddJob<ClearWorkOnDay>(concurrent: false, Triggers.DailyAt(0)); }); } diff --git a/cylsg/cylsg.Application/Transfer/UserTransfer.cs b/cylsg/cylsg.Application/Transfer/UserTransfer.cs index 0aaf219..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); @@ -212,6 +213,10 @@ } + else + { + throw Oops.Oh("绯荤粺閿欒"); + } } catch (Exception) diff --git a/cylsg/cylsg.Web.Entry/.config/dotnet-tools.json b/cylsg/cylsg.Web.Entry/.config/dotnet-tools.json new file mode 100644 index 0000000..071b4ee --- /dev/null +++ b/cylsg/cylsg.Web.Entry/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "8.0.8", + "commands": [ + "dotnet-ef" + ] + } + } +} \ No newline at end of file diff --git a/cylsg/cylsg.Web.Entry/Properties/PublishProfiles/FolderProfile.pubxml b/cylsg/cylsg.Web.Entry/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..d1629d1 --- /dev/null +++ b/cylsg/cylsg.Web.Entry/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,21 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<!-- +https://go.microsoft.com/fwlink/?LinkID=208121. +--> +<Project> + <PropertyGroup> + <DeleteExistingFiles>true</DeleteExistingFiles> + <ExcludeApp_Data>false</ExcludeApp_Data> + <LaunchSiteAfterPublish>true</LaunchSiteAfterPublish> + <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> + <LastUsedPlatform>Any CPU</LastUsedPlatform> + <PublishProvider>FileSystem</PublishProvider> + <PublishUrl>bin\Release\net8.0\publish\</PublishUrl> + <WebPublishMethod>FileSystem</WebPublishMethod> + <_TargetId>Folder</_TargetId> + <SiteUrlToLaunchAfterPublish /> + <TargetFramework>net8.0</TargetFramework> + <ProjectGuid>9826e365-eee9-4721-a738-b02ab64d47e5</ProjectGuid> + <SelfContained>false</SelfContained> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/cylsg/cylsg.Web.Entry/Properties/PublishProfiles/FolderProfile.pubxml.user b/cylsg/cylsg.Web.Entry/Properties/PublishProfiles/FolderProfile.pubxml.user new file mode 100644 index 0000000..222dddb --- /dev/null +++ b/cylsg/cylsg.Web.Entry/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -0,0 +1,11 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<!-- +https://go.microsoft.com/fwlink/?LinkID=208121. +--> +<Project> + <PropertyGroup> + <_PublishTargetUrl>D:\workdir\宸濆嵃涓存椂宸cylsg\cylsg.Web.Entry\bin\Release\net8.0\publish\</_PublishTargetUrl> + <History>True|2024-09-25T07:01:06.5999086Z;True|2024-09-25T14:59:41.7822144+08:00;True|2024-09-25T14:29:50.2870562+08:00;True|2024-09-25T14:23:43.9625627+08:00;True|2024-09-25T14:20:00.9806024+08:00;True|2024-09-25T14:06:51.1188532+08:00;</History> + <LastFailureDetails /> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/cylsg/cylsg.Web.Entry/cylsg.Web.Entry.csproj.user b/cylsg/cylsg.Web.Entry/cylsg.Web.Entry.csproj.user index cb66639..6168d64 100644 --- a/cylsg/cylsg.Web.Entry/cylsg.Web.Entry.csproj.user +++ b/cylsg/cylsg.Web.Entry/cylsg.Web.Entry.csproj.user @@ -5,5 +5,6 @@ </PropertyGroup> <PropertyGroup> <ActiveDebugProfile>cylsg.Web.Entry</ActiveDebugProfile> + <NameOfLastUsedPublishProfile>D:\workdir\宸濆嵃涓存椂宸cylsg\cylsg.Web.Entry\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> </PropertyGroup> </Project> \ No newline at end of file -- Gitblit v1.9.1