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
04d40641
Commit
04d40641
authored
Dec 25, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a1727541
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
AIStudentController.cs
Edu.WebApi/Controllers/AI/AIStudentController.cs
+17
-7
AppletLoginController.cs
Edu.WebApi/Controllers/Applet/AppletLoginController.cs
+2
-2
No files found.
Edu.WebApi/Controllers/AI/AIStudentController.cs
View file @
04d40641
...
@@ -120,10 +120,24 @@ namespace Edu.WebApi.Controllers.AI
...
@@ -120,10 +120,24 @@ namespace Edu.WebApi.Controllers.AI
string
keyWord
=
base
.
ParmJObj
.
GetStringValue
(
"KeyWord"
);
string
keyWord
=
base
.
ParmJObj
.
GetStringValue
(
"KeyWord"
);
keyWord
=
StringHelper
.
UrlDecode
(
keyWord
);
keyWord
=
StringHelper
.
UrlDecode
(
keyWord
);
int
supplierId
=
base
.
ParmJObj
.
GetInt
(
"SupplierId"
,
0
);
//int supplierId = base.ParmJObj.GetInt("SupplierId", 0);
int
applicationId
=
base
.
ParmJObj
.
GetInt
(
"ApplicationId"
,
0
);
if
(
applicationId
==
0
)
{
return
ApiResult
.
ParamIsNull
();
}
var
applocationModel
=
aiModule
.
GetAI_PresetsApplicationEntity
(
applicationId
);
if
((
applocationModel
?.
ID
??
0
)
==
0
||
applocationModel
.
Status
==
Common
.
Enum
.
DateStateEnum
.
Delete
||
applocationModel
.
Enable
==
2
)
{
return
ApiResult
.
Failed
(
"应用信息不存在"
);
}
if
((
applocationModel
?.
SupplierId
??
0
)
==
0
)
{
return
ApiResult
.
Failed
(
"应用信息供应商不存在"
);
}
string
grade
=
base
.
ParmJObj
.
GetStringValue
(
"Grade"
);
string
grade
=
base
.
ParmJObj
.
GetStringValue
(
"Grade"
);
int
Type
=
base
.
ParmJObj
.
GetInt
(
"Type"
,
0
);
//1-英语作文批改(图像识别),2-英语作文批改(文本输入),3-中文作文批改(图像识别),4-中文作文批改(文本输入)
int
Type
=
base
.
ParmJObj
.
GetInt
(
"Type"
,
0
);
//1-英语作文批改(图像识别),2-英语作文批改(文本输入),3-中文作文批改(图像识别),4-中文作文批改(文本输入)
var
supplierModel
=
aiModule
.
GetAI_SupplierEntity
(
s
upplierId
);
var
supplierModel
=
aiModule
.
GetAI_SupplierEntity
(
applocationModel
.
S
upplierId
);
string
imgUrl
=
base
.
ParmJObj
.
GetStringValue
(
"ImgUrl"
);
string
imgUrl
=
base
.
ParmJObj
.
GetStringValue
(
"ImgUrl"
);
RB_AI_UseLog_ViewModel
userLogModel
=
new
RB_AI_UseLog_ViewModel
();
RB_AI_UseLog_ViewModel
userLogModel
=
new
RB_AI_UseLog_ViewModel
();
userLogModel
.
CreateBy
=
base
.
AppletUserInfo
.
Id
;
userLogModel
.
CreateBy
=
base
.
AppletUserInfo
.
Id
;
...
@@ -131,7 +145,7 @@ namespace Edu.WebApi.Controllers.AI
...
@@ -131,7 +145,7 @@ namespace Edu.WebApi.Controllers.AI
userLogModel
.
School_Id
=
base
.
AppletUserInfo
.
School_Id
;
userLogModel
.
School_Id
=
base
.
AppletUserInfo
.
School_Id
;
userLogModel
.
CreateTime
=
DateTime
.
Now
;
userLogModel
.
CreateTime
=
DateTime
.
Now
;
userLogModel
.
StudentId
=
this
.
AppletUserInfo
.
AccountId
;
userLogModel
.
StudentId
=
this
.
AppletUserInfo
.
AccountId
;
userLogModel
.
SupplierId
=
s
upplierId
;
userLogModel
.
SupplierId
=
applocationModel
.
S
upplierId
;
userLogModel
.
TokenNum
=
""
;
userLogModel
.
TokenNum
=
""
;
userLogModel
.
Charging
=
""
;
userLogModel
.
Charging
=
""
;
userLogModel
.
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
;
userLogModel
.
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
;
...
@@ -143,10 +157,6 @@ namespace Edu.WebApi.Controllers.AI
...
@@ -143,10 +157,6 @@ namespace Edu.WebApi.Controllers.AI
{
{
return
ApiResult
.
Failed
(
"当前应用供应商未启用"
);
return
ApiResult
.
Failed
(
"当前应用供应商未启用"
);
}
}
if
(
supplierId
==
0
)
{
return
ApiResult
.
Failed
(
"请选择应用"
);
}
if
(
string
.
IsNullOrWhiteSpace
(
keyWord
))
if
(
string
.
IsNullOrWhiteSpace
(
keyWord
))
{
{
return
ApiResult
.
Failed
(
"请输入关键字"
);
return
ApiResult
.
Failed
(
"请输入关键字"
);
...
...
Edu.WebApi/Controllers/Applet/AppletLoginController.cs
View file @
04d40641
...
@@ -846,7 +846,7 @@ namespace Edu.WebApi.Controllers.APP
...
@@ -846,7 +846,7 @@ namespace Edu.WebApi.Controllers.APP
})?.
FirstOrDefault
();
})?.
FirstOrDefault
();
if
((
modelOpenId
?.
Id
??
0
)
>
0
)
if
((
modelOpenId
?.
Id
??
0
)
>
0
)
{
{
return
ApiResult
.
Failed
(
"
OpenId已绑定账户,快去登录吧
"
);
return
ApiResult
.
Failed
(
"
当前微信用户已注册,请直接登录
"
);
}
}
}
}
var
modelOld
=
accountModule
.
GetStudentExt
(
new
RB_Account_ViewModel
()
var
modelOld
=
accountModule
.
GetStudentExt
(
new
RB_Account_ViewModel
()
...
@@ -856,7 +856,7 @@ namespace Edu.WebApi.Controllers.APP
...
@@ -856,7 +856,7 @@ namespace Edu.WebApi.Controllers.APP
})?.
FirstOrDefault
();
})?.
FirstOrDefault
();
if
((
modelOld
?.
Id
??
0
)
>
0
)
if
((
modelOld
?.
Id
??
0
)
>
0
)
{
{
return
ApiResult
.
Failed
(
message
:
"用户已存在"
,
new
{
Error
=
-
1
});
return
ApiResult
.
Failed
(
message
:
"用户已存在
,请直接登录
"
,
new
{
Error
=
-
1
});
}
}
if
(
password
!=
"Viitto!@#123"
)
if
(
password
!=
"Viitto!@#123"
)
{
{
...
...
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