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
0fc51827
Commit
0fc51827
authored
Dec 12, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 应用使用数据上报
parent
7fb6b75a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
AgentApplicationInfoRestImpl.java
...t_application/rest/impl/AgentApplicationInfoRestImpl.java
+1
-1
DataAnalyzeChannelEnum.java
...om/poc/data_analyze/constants/DataAnalyzeChannelEnum.java
+6
-6
AgentApplicationServiceImpl.java
...oc/expose/aggregate/impl/AgentApplicationServiceImpl.java
+2
-2
No files found.
src/main/java/cn/com/poc/agent_application/rest/impl/AgentApplicationInfoRestImpl.java
View file @
0fc51827
...
...
@@ -475,7 +475,7 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
private
void
dataReport
(
AgentApplicationPreviewDto
dto
,
UserBaseEntity
userBaseEntity
,
String
agentId
,
Long
pointDeductionNum
)
{
if
(
StringUtils
.
isBlank
(
dto
.
getChannel
()))
{
dto
.
setChannel
(
DataAnalyzeChannelEnum
.
PREVIEW
.
getChannel
());
dto
.
setChannel
(
DataAnalyzeChannelEnum
.
preview
.
getChannel
());
}
dataAnalyzeReportService
.
dataReportByDialogue
(
userBaseEntity
.
getUserId
(),
DataAnalyzeTypeEnum
.
AGENT
,
agentId
,
DataAnalyzeChannelEnum
.
valueOf
(
dto
.
getChannel
()));
dataAnalyzeReportService
.
dataReportByPoint
(
userBaseEntity
.
getUserId
(),
new
BigDecimal
(
pointDeductionNum
),
DataAnalyzeTypeEnum
.
AGENT
,
agentId
,
DataAnalyzeChannelEnum
.
valueOf
(
dto
.
getChannel
()));
...
...
src/main/java/cn/com/poc/data_analyze/constants/DataAnalyzeChannelEnum.java
View file @
0fc51827
...
...
@@ -11,32 +11,32 @@ public enum DataAnalyzeChannelEnum {
/**
* 预览调试
*/
PREVIEW
(
"preview"
),
preview
(
"preview"
),
/**
* 多模型调试
*/
MULTI_PREVIEW
(
"multi_preview"
),
multi_preview
(
"multi_preview"
),
/**
* 首页
*/
INDEX
(
"index"
),
index
(
"index"
),
/**
* 应用广场
*/
MALL
(
"mall"
),
mall
(
"mall"
),
/**
* 链接分享
*/
LINK_SHARE
(
"link_share"
),
link_share
(
"link_share"
),
/**
* API调用
*/
API
(
"api"
),
api
(
"api"
),
;
private
String
channel
;
...
...
src/main/java/cn/com/poc/expose/aggregate/impl/AgentApplicationServiceImpl.java
View file @
0fc51827
...
...
@@ -168,7 +168,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
Long
pointDeductionNum
=
pointDeductionRulesService
.
calculatePointDeductionNum
(
infoEntity
.
getLargeModel
(),
infoEntity
.
getCommunicationTurn
(),
tools
);
AgentUseModifyEventInfo
agentUseModifyEventInfo
=
new
AgentUseModifyEventInfo
();
agentUseModifyEventInfo
.
setAgentId
(
agentId
);
agentUseModifyEventInfo
.
setIsPublish
(
CommonConstant
.
IsDeleted
.
N
);
agentUseModifyEventInfo
.
setIsPublish
(
CommonConstant
.
IsDeleted
.
Y
);
reduceSn
=
memberEquityService
.
reducePoint
(
userBaseEntity
.
getUserId
(),
pointDeductionNum
,
ModifyEventEnum
.
use
,
agentUseModifyEventInfo
);
//对话
...
...
@@ -427,7 +427,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
private
void
dataReport
(
String
agentId
,
String
channel
,
UserBaseEntity
userBaseEntity
,
Long
pointDeductionNum
)
{
if
(
StringUtils
.
isBlank
(
channel
))
{
channel
=
DataAnalyzeChannelEnum
.
LINK_SHARE
.
getChannel
();
channel
=
DataAnalyzeChannelEnum
.
link_share
.
getChannel
();
}
dataAnalyzeReportService
.
dataReportByDialogue
(
userBaseEntity
.
getUserId
(),
DataAnalyzeTypeEnum
.
AGENT
,
agentId
,
DataAnalyzeChannelEnum
.
valueOf
(
channel
));
dataAnalyzeReportService
.
dataReportByPoint
(
userBaseEntity
.
getUserId
(),
new
BigDecimal
(
pointDeductionNum
),
DataAnalyzeTypeEnum
.
AGENT
,
agentId
,
DataAnalyzeChannelEnum
.
valueOf
(
channel
));
...
...
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