Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
黄奎
Education
Commits
edc67701
Commit
edc67701
authored
Dec 16, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d9e0fa28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
36 deletions
+62
-36
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+62
-36
No files found.
Edu.WebApi/Controllers/User/UserController.cs
View file @
edc67701
...
...
@@ -850,83 +850,109 @@ namespace Edu.WebApi.Controllers.User
string
message
=
""
;
var
customer
=
base
.
AppletCustomerInfo
;
//是否是同行注册
bool
isB2B
=
false
;
if
(
customer
!=
null
&&
customer
.
GroupId
>
0
)
{
query
.
Group_Id
=
customer
.
GroupId
;
isB2B
=
true
;
}
if
(
query
.
Group_Id
<=
0
)
{
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
}
if
(
customer
!=
null
)
{
if
(!
string
.
IsNullOrEmpty
(
query
.
StuTel
)&&
studentModule
.
CheckStudentModule
(
query
,
1
))
{
message
=
"此学员手机号已绑定同行!请重新录入!"
;
}
if
(!
string
.
IsNullOrEmpty
(
query
.
QQ
)&&
studentModule
.
CheckStudentModule
(
query
,
2
))
{
message
=
"此学员QQ已绑定同行!请重新录入!"
;
}
if
(!
string
.
IsNullOrEmpty
(
query
.
WeChatNo
)&&
studentModule
.
CheckStudentModule
(
query
,
3
))
{
message
=
"此学员微信已绑定同行!请重新录入!"
;
}
}
//后台验证
else
if
(!
string
.
IsNullOrEmpty
(
query
.
StuTel
))
{
if
(!
string
.
IsNullOrEmpty
(
query
.
StuTel
))
var
model
=
studentModule
.
CheckExistsStuModule
(
new
RB_Student_ViewModel
()
{
Group_Id
=
query
.
Group_Id
,
StuTel
=
query
.
StuTel
});
string
name
=
UserReidsCache
.
GetUserLoginInfo
((
model
?.
CreateBy
??
0
))?.
AccountName
??
""
;
if
(
model
!=
null
&&
model
.
StuId
>
0
)
{
var
model
=
studentModule
.
CheckExistsStuModule
(
new
RB_Student_ViewModel
()
{
Group_Id
=
query
.
Group_Id
,
StuTel
=
query
.
StuTel
});
string
name
=
UserReidsCache
.
GetUserLoginInfo
(
model
.
CreateBy
)?.
AccountName
??
""
;
if
(
model
!=
null
&&
model
.
StuId
>
0
)
if
(
query
.
StuId
>
0
)
{
if
(
query
.
StuId
>
0
)
if
(
query
.
StuId
!=
model
.
StuId
)
{
if
(
query
.
StuId
!=
model
.
StuId
)
if
(
isB2B
)
{
message
=
"此学员手机号已绑定同行!请重新录入!"
;
}
else
{
message
=
string
.
Format
(
"此学员手机号已被【{0}】于【{1}】注册。"
,
name
,
Common
.
ConvertHelper
.
FormatTime
(
model
.
CreateTime
));
}
}
}
else
{
if
(
isB2B
)
{
message
=
"此学员手机号已绑定同行!请重新录入!"
;
}
else
{
message
=
string
.
Format
(
"此学员手机号已被【{0}】于【{1}】注册。"
,
name
,
Common
.
ConvertHelper
.
FormatTime
(
model
.
CreateTime
));
}
}
}
if
(!
string
.
IsNullOrEmpty
(
query
.
QQ
))
}
if
(!
string
.
IsNullOrEmpty
(
query
.
QQ
))
{
var
model
=
studentModule
.
CheckExistsStuModule
(
new
RB_Student_ViewModel
()
{
Group_Id
=
query
.
Group_Id
,
QQ
=
query
.
QQ
});
string
name
=
UserReidsCache
.
GetUserLoginInfo
((
model
?.
CreateBy
??
0
))?.
AccountName
??
""
;
if
(
model
!=
null
&&
model
.
StuId
>
0
)
{
var
model
=
studentModule
.
CheckExistsStuModule
(
new
RB_Student_ViewModel
()
{
Group_Id
=
query
.
Group_Id
,
QQ
=
query
.
QQ
});
string
name
=
UserReidsCache
.
GetUserLoginInfo
(
model
.
CreateBy
)?.
AccountName
??
""
;
if
(
model
!=
null
&&
model
.
StuId
>
0
)
if
(
query
.
StuId
>
0
)
{
if
(
query
.
StuId
>
0
)
if
(
query
.
StuId
!=
model
.
StuId
)
{
if
(
query
.
StuId
!=
model
.
StuId
)
if
(
isB2B
)
{
message
=
"此学员QQ已绑定同行!请重新录入!"
;
}
else
{
message
=
string
.
Format
(
"此学员QQ号已被【{0}】于【{1}】注册。"
,
name
,
Common
.
ConvertHelper
.
FormatTime
(
model
.
CreateTime
));
}
}
}
else
{
if
(
isB2B
)
{
message
=
"此学员QQ已绑定同行!请重新录入!"
;
}
else
{
message
=
string
.
Format
(
"此学员QQ号已被【{0}】于【{1}】注册。"
,
name
,
Common
.
ConvertHelper
.
FormatTime
(
model
.
CreateTime
));
}
}
}
if
(!
string
.
IsNullOrEmpty
(
query
.
WeChatNo
))
}
if
(!
string
.
IsNullOrEmpty
(
query
.
WeChatNo
))
{
var
model
=
studentModule
.
CheckExistsStuModule
(
new
RB_Student_ViewModel
()
{
Group_Id
=
query
.
Group_Id
,
WeChatNo
=
query
.
WeChatNo
});
string
name
=
UserReidsCache
.
GetUserLoginInfo
((
model
?.
CreateBy
??
0
))?.
AccountName
??
""
;
if
(
model
!=
null
&&
model
.
StuId
>
0
)
{
var
model
=
studentModule
.
CheckExistsStuModule
(
new
RB_Student_ViewModel
()
{
Group_Id
=
query
.
Group_Id
,
WeChatNo
=
query
.
WeChatNo
});
string
name
=
UserReidsCache
.
GetUserLoginInfo
(
model
.
CreateBy
)?.
AccountName
??
""
;
if
(
model
!=
null
&&
model
.
StuId
>
0
)
if
(
query
.
StuId
>
0
)
{
if
(
query
.
StuId
>
0
)
if
(
query
.
StuId
!=
model
.
StuId
)
{
if
(
query
.
StuId
!=
model
.
StuId
)
if
(
isB2B
)
{
message
=
"此学员微信已绑定同行!请重新录入!"
;
}
else
{
message
=
string
.
Format
(
"此学员QQ号已被【{0}】于【{1}】注册。"
,
name
,
Common
.
ConvertHelper
.
FormatTime
(
model
.
CreateTime
));
}
}
}
else
{
if
(
isB2B
)
{
message
=
"此学员微信已绑定同行!请重新录入!"
;
}
else
{
...
...
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