From 67d5dbb966df4af4304b4168378c68ce83ad01b1 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期三, 10 九月 2025 13:05:50 +0800
Subject: [PATCH] feat:开发

---
 FlexJobApi.UserServer.Application/EnterpriseWallets/Queries/EnterpriseWalletQueryHandler.cs |   40 +++++++++++++++++++++-------------------
 1 files changed, 21 insertions(+), 19 deletions(-)

diff --git a/FlexJobApi.UserServer.Application/EnterpriseWallets/Queries/EnterpriseWalletQueryHandler.cs b/FlexJobApi.UserServer.Application/EnterpriseWallets/Queries/EnterpriseWalletQueryHandler.cs
index f95e00f..2202f1f 100644
--- a/FlexJobApi.UserServer.Application/EnterpriseWallets/Queries/EnterpriseWalletQueryHandler.cs
+++ b/FlexJobApi.UserServer.Application/EnterpriseWallets/Queries/EnterpriseWalletQueryHandler.cs
@@ -76,25 +76,27 @@
                         ExternalAgreementNo = entity.Code,
                         ThirdPartyType = entity.ThirdPartyType,
                     });
-                    if (response.IsError) throw Oops.Oh(EnumErrorCodeType.s510, response.SubMsg ?? response.Msg);
-                    entity.AgreementNo = response.AgreementNo;
-                    entity.SignTime = response.SignTime.ToDateTime();
-                    entity.ValidTime = response.ValidTime.ToDateTime();
-                    entity.InvalidTime = response.InvalidTime.ToDateTime();
-                    entity.SignStatus = response.Status == "TEMP"
-                        ? EnumEnterpriseWalletSignStatus.Apply
-                        : response.Status == "NORMAL"
-                        ? EnumEnterpriseWalletSignStatus.Normal
-                        : response.Status == "STOP"
-                        ? EnumEnterpriseWalletSignStatus.Stop
-                        : throw Oops.Oh(EnumErrorCodeType.s510, "鐘舵�佸紓甯�");
-                    entity.PricipalType = response.PricipalType;
-                    entity.AlipayLogonId = response.AlipayLogonId;
-                    entity.PrincipalId = response.PrincipalId;
-                    entity.PrincipalOpenId = response.PrincipalOpenId;
-                    entity.ZmOpenId = response.ZmOpenId;
-                    entity.CreditAuthMode = response.CreditAuthMode;
-                    update = true;
+                    if (!response.IsError)
+                    {
+                        entity.AgreementNo = response.AgreementNo;
+                        entity.SignTime = response.SignTime.ToDateTime();
+                        entity.ValidTime = response.ValidTime.ToDateTime();
+                        entity.InvalidTime = response.InvalidTime.ToDateTime();
+                        entity.SignStatus = response.Status == "TEMP"
+                            ? EnumEnterpriseWalletSignStatus.Apply
+                            : response.Status == "NORMAL"
+                            ? EnumEnterpriseWalletSignStatus.Normal
+                            : response.Status == "STOP"
+                            ? EnumEnterpriseWalletSignStatus.Stop
+                            : throw Oops.Oh(EnumErrorCodeType.s510, "鐘舵�佸紓甯�");
+                        entity.PricipalType = response.PricipalType;
+                        entity.AlipayLogonId = response.AlipayLogonId;
+                        entity.PrincipalId = response.PrincipalId;
+                        entity.PrincipalOpenId = response.PrincipalOpenId;
+                        entity.ZmOpenId = response.ZmOpenId;
+                        entity.CreditAuthMode = response.CreditAuthMode;
+                        update = true;
+                    }
                 }
 
                 if (entity.SignStatus == EnumEnterpriseWalletSignStatus.Normal && entity.AccountBookStatus != EnumEnterpriseWalletAccountBookStatus.Normal)

--
Gitblit v1.9.1