From 597399726303f4f6f41b0a55d8dcaa153f49b97a Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期四, 19 五月 2022 14:57:33 +0800
Subject: [PATCH] 账号信息增加是否自动返还 系统账号信息增加:用户类型 客户信息增加:归属客户经理、归属业务员、归属客服人员、归属财务等 客户账号查询优化 账号查询充值优化

---
 web/web/SysUser.ashx |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/web/web/SysUser.ashx b/web/web/SysUser.ashx
index ec17789..f1bae60 100644
--- a/web/web/SysUser.ashx
+++ b/web/web/SysUser.ashx
@@ -94,6 +94,7 @@
         string string1 = context.GetString("account");
         string string2 = context.GetString("password");
         string userName = context.GetString("userName");
+        string userType = context.GetString("userType");
         string string3 = context.GetString("email");
         string string4 = context.GetString("mobile");
         int int2 = context.GetInt("emailFlag");
@@ -104,7 +105,9 @@
         if (string.IsNullOrEmpty(string2) || string2.Length < 6)
             throw new ArgumentException("璐︽埛瀵嗙爜鑷冲皯6浣嶏紝璇烽噸鏂拌緭鍏ワ紒");
         if (string.IsNullOrEmpty(userName))
-            throw new ArgumentException("璐﹀彿鍚嶇О涓嶈兘涓虹┖锛岃杈撳叆锛�");
+            throw new ArgumentException("璐︽埛鍚嶇О涓嶈兘涓虹┖锛岃杈撳叆锛�");
+        if (string.IsNullOrEmpty(userType))
+            throw new ArgumentException("璐︽埛绫诲瀷涓嶈兘涓虹┖锛岃閫夋嫨锛�");
         if (context.GetBoolean("isVerification"))
             num = 1;
         string string5 = context.GetString("clientIp");
@@ -131,6 +134,7 @@
             throw new ArgumentException("璐︽埛鍚嶇О宸茬粡瀛樺湪锛岃閲嶆柊杈撳叆锛�");
 
         sysUser.UserName = userName;
+        sysUser.UserType = string.IsNullOrEmpty(userType) ? 0 : int.Parse(userType);
         sysUser.CreateTime = DateTime.Now;
         if (int1 > 0)
         {
@@ -159,6 +163,7 @@
             context.CheckRight("1041", FailedOperation.PromptOnly);
             if (this._Dao.Exists(string1))
                 throw new ArgumentException("璐︽埛宸茬粡瀛樺湪锛岃閲嶆柊杈撳叆锛�");
+
             this._Dao.Add(sysUser);
         }
         return new JsonPageResult(true, (object) "璐︽埛淇濆瓨鎴愬姛锛�");

--
Gitblit v1.9.1