From 374ce4ffd0c459bb4067e8d5765f972668aff9b1 Mon Sep 17 00:00:00 2001 From: wzp <2040239371@qq.com> Date: 星期四, 02 三月 2023 14:56:23 +0800 Subject: [PATCH] 变更oracle访问组件 --- web/web/GwClient.ashx | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/web/web/GwClient.ashx b/web/web/GwClient.ashx index f4b5ef3..8e59192 100644 --- a/web/web/GwClient.ashx +++ b/web/web/GwClient.ashx @@ -419,7 +419,7 @@ string financialStaff = context.GetString("financialStaff"); string chargeType = context.GetString("chargeType"); string smsStatusReport = context.GetString("smsStatusReport"); - + string isEnableWhite = context.GetString("isEnableWhite"); string isEnableBlack = context.GetString("isEnableBlack"); @@ -530,7 +530,7 @@ client.FinancialStaff = financialStaff; client.ChargeType = string.IsNullOrEmpty(chargeType) ? 0 : int.Parse(chargeType); client.SmsStatusReport = string.IsNullOrEmpty(smsStatusReport) ? 0 : int.Parse(smsStatusReport); - + client.IsEnableWhite = string.IsNullOrEmpty(isEnableWhite) ? 0 : int.Parse(isEnableWhite); client.IsEnableBlack = string.IsNullOrEmpty(isEnableBlack) ? 0 : int.Parse(isEnableBlack); @@ -553,6 +553,8 @@ ///鍒涘缓鏂板鎴� private JsonPageResult Save(PageContext<Model.SysUser> context) { + + //娴嬭瘯 string clientID = context.GetString("clientID"); string password = context.GetString("password"); string clientName = context.GetString("clientName"); @@ -596,6 +598,11 @@ throw new ArgumentException("瀹㈡埛璐﹀彿涓嶈兘涓虹┖锛屼笖蹇呴』涓哄叕鍙稿悕绉帮紒"); } + if (address.Length >= 150) + { + throw new ArgumentException("鍦板潃闀垮害瓒呭嚭闄愬埗锛�"); + } + if (string.IsNullOrEmpty(company)) { throw new AggregateException("鍏徃鍚嶇О涓嶈兘涓虹┖锛屼笖蹇呴』鏄叏绉�"); -- Gitblit v1.9.1