Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
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
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
poc
poc-api
Commits
9fa9a7db
Commit
9fa9a7db
authored
Dec 18, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:创建者积分不足,无法使用 异常提醒
parent
aaea0192
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
AgentApplicationServiceImpl.java
...oc/expose/aggregate/impl/AgentApplicationServiceImpl.java
+9
-2
equity.properties
src/main/resources/framemax-config/i18n/en/equity.properties
+2
-1
equity.properties
...in/resources/framemax-config/i18n/zh_cn/equity.properties
+2
-1
equity.properties
...in/resources/framemax-config/i18n/zh_tw/equity.properties
+2
-1
No files found.
src/main/java/cn/com/poc/expose/aggregate/impl/AgentApplicationServiceImpl.java
View file @
9fa9a7db
...
...
@@ -170,8 +170,15 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
agentUseModifyEventInfo
.
setAgentId
(
agentId
);
agentUseModifyEventInfo
.
setIsPublish
(
CommonConstant
.
IsDeleted
.
Y
);
Long
deducted
=
infoEntity
.
getMemberId
().
longValue
()
==
0L
?
userBaseEntity
.
getUserId
()
:
infoEntity
.
getMemberId
();
reduceSn
=
memberEquityService
.
reducePoint
(
deducted
,
pointDeductionNum
,
ModifyEventEnum
.
use
,
agentUseModifyEventInfo
);
try
{
reduceSn
=
memberEquityService
.
reducePoint
(
deducted
,
pointDeductionNum
,
ModifyEventEnum
.
use
,
agentUseModifyEventInfo
);
}
catch
(
Exception
e
)
{
if
(
deducted
.
equals
(
userBaseEntity
.
getUserId
())){
throw
new
I18nMessageException
(
"equity/not.enough.points"
);
}
else
{
throw
new
I18nMessageException
(
"equity/creator.points.cannot.be.used"
);
}
}
//对话
String
output
=
agentApplicationInfoService
.
callAgentApplication
(
agentId
,
dialogsId
,
infoEntity
.
getLargeModel
(),
infoEntity
.
getAgentSystem
(),
kdIdList
.
toArray
(
new
Integer
[
0
]),
infoEntity
.
getCommunicationTurn
(),
...
...
src/main/resources/framemax-config/i18n/en/equity.properties
View file @
9fa9a7db
...
...
@@ -4,4 +4,5 @@ not.enough.points=Not enough points
transaction.history.not.exist
=
The slip does not exist
event.not.support
=
Current event is not supported
equity.level.not.exist
=
Equity level does not exist
target.equity.is.lower.current.equity
=
The target equity is lower than the current equity and cannot be created
\ No newline at end of file
target.equity.is.lower.current.equity
=
The target equity is lower than the current equity and cannot be created
creator.points.cannot.be.used
=
Insufficient creator points cannot be used
\ No newline at end of file
src/main/resources/framemax-config/i18n/zh_cn/equity.properties
View file @
9fa9a7db
...
...
@@ -4,4 +4,5 @@ not.enough.points=\u79EF\u5206\u4E0D\u8DB3
transaction.history.not.exist
=
\u
6D41
\u
6C34
\u
4E0D
\u
5B58
\u5728
event.not.support
=
\u
4E0D
\u
652F
\u6301\u
5F53
\u
524D
\u
4E8B
\u
4EF6
equity.level.not.exist
=
\u6743\u
76CA
\u
7B49
\u
7EA7
\u
4E0D
\u
5B58
\u5728
target.equity.is.lower.current.equity
=
\u
76EE
\u6807\u6743\u
76CA
\u
6BD4
\u
5F53
\u
524D
\u6743\u
76CA
\u
4F4E
\u
FF0C
\u
65E0
\u
6CD5
\u
521B
\u
5EFA
\ No newline at end of file
target.equity.is.lower.current.equity
=
\u
76EE
\u6807\u6743\u
76CA
\u
6BD4
\u
5F53
\u
524D
\u6743\u
76CA
\u
4F4E
\u
FF0C
\u
65E0
\u
6CD5
\u
521B
\u
5EFA
creator.points.cannot.be.used
=
\u
521B
\u
5EFA
\u8005\u
79EF
\u5206\u
4E0D
\u
8DB3
\u
FF0C
\u
65E0
\u
6CD5
\u
4F7F
\u7528
\ No newline at end of file
src/main/resources/framemax-config/i18n/zh_tw/equity.properties
View file @
9fa9a7db
...
...
@@ -4,4 +4,5 @@ not.enough.points=\u7A4D\u5206\u4E0D\u8DB3
transaction.history.not.exist
=
\u
6D41
\u
6C34
\u
55AE
\u
4E0D
\u
5B58
\u5728
event.not.support
=
\u
4E0D
\u
652F
\u6301\u7576\u
524D
\u
4E8B
\u
4EF6
equity.level.not.exist
=
\u
6B0A
\u
76CA
\u
7B49
\u
7D1A
\u
4E0D
\u
5B58
\u5728
target.equity.is.lower.current.equity
=
\u
76EE
\u
6A19
\u
6B0A
\u
76CA
\u
6BD4
\u7576\u
524D
\u
6B0A
\u
76CA
\u
4F4E
\u
FF0C
\u7121\u
6CD5
\u5275\u
5EFA
\ No newline at end of file
target.equity.is.lower.current.equity
=
\u
76EE
\u
6A19
\u
6B0A
\u
76CA
\u
6BD4
\u7576\u
524D
\u
6B0A
\u
76CA
\u
4F4E
\u
FF0C
\u7121\u
6CD5
\u5275\u
5EFA
creator.points.cannot.be.used
=
\u5275\u
5EFA
\u8005\u
7A4D
\u5206\u
4E0D
\u
77E5
\u
FF0C
\u7121\u
6CD5
\u
4F7F
\u7528
\ No newline at end of file
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