Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chatGLM
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘坚-丰林-DEV
chatGLM
Commits
a4cbb71b
Commit
a4cbb71b
authored
May 09, 2023
by
liuxiaohui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uploadFile' of
http://gitlab.baibaomen.com/jian.liu/chatgml
into uploadFile
parents
2381d7ce
13f7e567
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
.gitignore
.gitignore
+1
-0
UsersAppService.cs
...-core/src/BBM.ChatGLM.Application/User/UsersAppService.cs
+7
-0
No files found.
.gitignore
View file @
a4cbb71b
...
...
@@ -329,3 +329,4 @@ node_modules
*.txt
/aspnet-core/src/BBM.ChatGLM.Application/User/UsersAppService.cs
aspnet-core/src/BBM.ChatGLM.Application/User/UsersAppService.cs
View file @
a4cbb71b
...
...
@@ -177,6 +177,7 @@ namespace BBM.ChatGLM.User
var
userName
=
""
;
var
phoneNumber
=
""
;
var
userRole
=
""
;
var
noData
=
false
;
while
(
row
<=
totalRows
)
{
...
...
@@ -190,6 +191,12 @@ namespace BBM.ChatGLM.User
phoneNumber
=
Regex
.
Replace
(
phoneNumber
,
@"\s"
,
""
);
userRole
=
Regex
.
Replace
(
userRole
,
@"\s"
,
""
);
if
(
totalRows
==
2
&&
string
.
IsNullOrEmpty
(
userName
)
&&
string
.
IsNullOrEmpty
(
phoneNumber
)
&&
string
.
IsNullOrEmpty
(
userRole
))
{
noData
=
true
;
continue
;
}
if
(
string
.
IsNullOrEmpty
(
userName
))
{
failNum
++;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment