|
@@ -882,7 +882,7 @@ export const refreshView = () => {
|
|
|
}, 100)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+type IFeature = 'UNIT_TEST' | 'PRACTICE' | 'EVALUATION' //UNIT_TEST("单元测试"),PRACTICE("练习"),EVALUATION("评测")
|
|
|
const updatePlayTime = async (time: number) => {
|
|
|
if (!state.evaluatingStatus) {
|
|
|
const search = useOriginSearch()
|
|
@@ -890,6 +890,7 @@ const updatePlayTime = async (time: number) => {
|
|
|
const prefix = getRequestHostname()
|
|
|
const clientType = useClientType()
|
|
|
console.log("🚀 ~ clientType", clientType)
|
|
|
+ const feature: IFeature = (search.feature as IFeature) || 'PRACTICE'
|
|
|
// 如果是后台不需要统计时长
|
|
|
if (clientType === 'web') return
|
|
|
try {
|
|
@@ -899,7 +900,7 @@ const updatePlayTime = async (time: number) => {
|
|
|
data: {
|
|
|
musicSheetId: getLinkId(),
|
|
|
sysMusicScoreId: getLinkId(),
|
|
|
- feature: 'CLOUD_STUDY_TRAIN',
|
|
|
+ feature,
|
|
|
playTime: time,
|
|
|
deviceType: getPlatform(),
|
|
|
behaviorId,
|