2 Komitmen 066a6733e8 ... f8aeb79f0e

Pembuat SHA1 Pesan Tanggal
  nieyuge f8aeb79f0e 上报 3 bulan lalu
  nieyuge 066a6733e8 上报 3 bulan lalu

+ 3 - 11
src/hooks/useLogger.ts

@@ -7,7 +7,6 @@ import { VideoSearchPlanType } from '@src/views/publishContent/weCom/type';
 
 type NormalLogParams = {
 	traceId: number;
-	requestId: number;
 	planType?: VideoSearchPlanType;
 	gzhAccountId?: number;
 	subChannel?: string;
@@ -57,7 +56,6 @@ const useLogger = () => {
 
 	const uploadLogVideoListQuery = ({
 		traceId,
-		requestId,
 		planType,
 		subChannel,
 		category,
@@ -69,7 +67,6 @@ const useLogger = () => {
 			objectType: 'video_list',
 			extParams: {
 				traceId,
-				requestId,
 				planType,
 				subChannel,
 				category,
@@ -79,21 +76,20 @@ const useLogger = () => {
 		});
 	}
 
-	const uploadLogVideoPlay = ({videoId, traceId, requestId, planType, subChannel}: VideoLogParams) => {
+	const uploadLogVideoPlay = ({videoId, traceId, planType, subChannel}: VideoLogParams) => {
 		return uploadLog({
 			businessType: 'video_play',
 			objectType: 'video',
 			extParams: {
 				videoId,
 				traceId,
-				requestId,
 				planType,
 				subChannel,
 			},
 		});
 	}
 
-	const uploadLogVideoPlayEnd = ({videoId, playTime, traceId, requestId, planType, subChannel}: VideoLogParams) => {
+	const uploadLogVideoPlayEnd = ({videoId, playTime, traceId, planType, subChannel}: VideoLogParams) => {
 		return uploadLog({
 			businessType: 'video_play_end',
 			objectType: 'video',
@@ -101,21 +97,19 @@ const useLogger = () => {
 				videoId,
 				playTime,
 				traceId,
-				requestId,
 				planType,
 				subChannel,
 			},
 		});
 	}
 
-	const uploadLogVideoCollect = ({videoId, traceId, requestId, collect, planType, subChannel}: VideoLogParams) => {
+	const uploadLogVideoCollect = ({videoId, traceId, collect, planType, subChannel}: VideoLogParams) => {
 		return uploadLog({
 			businessType: 'video_collect',
 			objectType: 'video',
 			extParams: {
 				videoId,
 				traceId,
-				requestId,
 				collect,
 				planType,
 				subChannel,
@@ -126,7 +120,6 @@ const useLogger = () => {
 	const uploadLogVideoCreatePublish = ({
 		videoList,
 		traceId,
-		requestId,
 		planType,
 		gzhAccountId,
 		subChannel
@@ -137,7 +130,6 @@ const useLogger = () => {
 			extParams: {
 				videoList,
 				traceId,
-				requestId,
 				planType,
 				gzhAccountId,
 				subChannel,

+ 0 - 1
src/views/publishContent/weCom/components/addPlanModal/index.tsx

@@ -57,7 +57,6 @@ const AddPlanModal: React.FC<{
 			uploadLogVideoCreatePublish({
 				videoList: selectedVideos,
 				traceId: Date.now(),
-				requestId: Date.now(),
 				planType: type === WeComPlanType.社群 ? VideoSearchPlanType.企微社群 : VideoSearchPlanType.企微自动回复,
 				subChannel: values.subChannel || 'weCom',
 			});

+ 1 - 2
src/views/publishContent/weCom/components/videoSelectModal/index.tsx

@@ -89,10 +89,9 @@ const VideoSelectModal: React.FC<VideoSelectModalProps> = ({ visible, onClose, o
 		// 上报视频列表查询日志(使用防抖)
 		debouncedUploadLogVideoListQuery({
 			traceId: Date.now(),
-			requestId: Date.now(),
 			planType: planType === WeComPlanType.社群 ? VideoSearchPlanType.企微社群 : VideoSearchPlanType.企微自动回复,
 			subChannel: 'weCom',
-			category,
+			category: category ?? '',
 			title: searchTerm,
 			sortType: sort,
 		});

+ 0 - 1
src/views/publishContent/weGZH/components/publishPlanModal/index.tsx

@@ -106,7 +106,6 @@ const AddPunlishPlanModal: React.FC<AddPunlishPlanModalProps> = ({ visible, isSu
 				uploadLogVideoCreatePublish({
 					videoList: selectedVideos,
 					traceId: Date.now(),
-					requestId: Date.now(),
 					planType: getVideoListType(planType),
 					gzhAccountId: formData.accountId,
 					subChannel: 'weGZH'

+ 1 - 2
src/views/publishContent/weGZH/components/videoSelectModal/index.tsx

@@ -95,10 +95,9 @@ const VideoSelectModal: React.FC<VideoSelectModalProps> = ({ planType, visible,
 		// 上报视频列表查询日志(使用防抖)
 		debouncedUploadLogVideoListQuery({
 			traceId: Date.now(),
-			requestId: Date.now(),
 			planType: getVideoListType(planType),
 			subChannel: 'weGZH',
-			category,
+			category: category ?? '',
 			title: searchTerm,
 			sortType: sort,
 		});