@polyvharmony/live-scenes-sdk 1.3.0-rc.1 → 1.3.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BuildProfile.d.ets +2 -2
- package/BuildProfile.js +1 -1
- package/CHANGELOG.md +1 -1
- package/oh-package.json5 +1 -1
- package/package.json +1 -1
- package/src/main/ets/modules/chatroom/PLVChatroomManager.d.ets +9 -9
- package/src/main/ets/modules/chatroom/PLVChatroomManager.js +57 -58
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.d.ets +3 -3
- package/src/main/ets/modules/i18n/PLVI18NDataMapper.js +12 -12
- package/src/main/ets/modules/i18n/PLVLanguageManager.js +8 -5
- package/src/main/ets/modules/interact/PLVInteractManager.d.ets +4 -4
- package/src/main/ets/modules/interact/PLVInteractManager.js +8 -8
- package/src/main/ets/modules/interact/PLVInteractWeb.d.ets +2 -2
- package/src/main/ets/modules/interact/PLVInteractWeb.js +39 -39
- package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.d.ets +1 -1
- package/src/main/ets/modules/interact/invitePoster/PLVInteractInvitePoster.js +16 -16
- package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.d.ets +1 -1
- package/src/main/ets/modules/interact/model/PLVFunctionSwitchBean.js +2 -2
- package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.d.ets +2 -2
- package/src/main/ets/modules/interact/pushcard/PLVPushCardManager.js +16 -16
- package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.d.ets +3 -3
- package/src/main/ets/modules/interact/pushcard/repo/PLVCardLookTimeLocalRepository.js +6 -6
- package/src/main/ets/modules/interact/redpack/model/PLVHistoryRedPaperEvent.js +4 -4
- package/src/main/ets/modules/interact/redpack/model/PLVRedPaperEvent.js +4 -4
- package/src/main/ets/modules/linkmic/PLVLinkMicManager.d.ets +12 -12
- package/src/main/ets/modules/linkmic/PLVLinkMicManager.js +33 -33
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.d.ets +2 -2
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicMediator.js +10 -10
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.d.ets +6 -6
- package/src/main/ets/modules/linkmic/mediator/PLVLinkMicRTCEventCallback.js +29 -29
- package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.d.ets +5 -5
- package/src/main/ets/modules/linkmic/model/PLVLinkMicRepo.js +52 -52
- package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.d.ets +4 -4
- package/src/main/ets/modules/linkmic/model/datasource/PLVLinkMicNetworkDataSource.js +32 -32
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicBitRateEncodeParam.js +6 -6
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicInteractEvent.js +2 -2
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicMode.js +3 -3
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicRTCType.js +2 -2
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicState.js +6 -6
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicVideoRenderParam.js +3 -3
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.d.ets +1 -1
- package/src/main/ets/modules/linkmic/model/vo/PLVLinkMicViewer.js +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.d.ets +13 -13
- package/src/main/ets/modules/linkmic/viewmodel/PLVLinkMicViewModel.js +34 -34
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.d.ets +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicEncodeParamUseCase.js +13 -13
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleQueueOrderUseCase.js +25 -25
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleRTCUseCase.js +13 -13
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicHandleStateUseCase.js +26 -26
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.d.ets +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicUpdateChannelViewerUseCase.js +127 -127
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.d.ets +1 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/LinkMicViewLogUseCase.js +27 -27
- package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.d.ets +1 -1
- package/src/main/ets/modules/linkmic/viewmodel/usecase/PLVLinkMicUseCases.js +7 -7
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.d.ets +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestEncodeParamUseCase.js +79 -79
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleRTCUseCase.js +26 -26
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/guest/LinkMicGuestHandleStateUseCase.js +135 -135
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.d.ets +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherEncodeParamUseCase.js +79 -79
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleRTCUseCase.js +22 -22
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/teacher/LinkMicTeacherHandleStateUseCase.js +106 -106
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.d.ets +5 -5
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerEncodeParamUseCase.js +12 -12
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.d.ets +4 -4
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleRTCUseCase.js +31 -31
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.d.ets +10 -10
- package/src/main/ets/modules/linkmic/viewmodel/usecase/roles/viewer/LinkMicViewerHandleStateUseCase.js +102 -102
- package/src/main/ets/modules/log/elog/PLVELogSender.d.ets +4 -4
- package/src/main/ets/modules/log/elog/PLVELogSender.js +11 -11
- package/src/main/ets/modules/log/elog/model/PLVELogDataBean.d.ets +1 -1
- package/src/main/ets/modules/log/elog/model/PLVELogDataBean.js +9 -9
- package/src/main/ets/modules/log/elog/model/PLVELogModuleConstants.js +8 -8
- package/src/main/ets/modules/login/PLVSceneLoginManager.d.ets +2 -2
- package/src/main/ets/modules/login/PLVSceneLoginManager.js +71 -71
- package/src/main/ets/modules/login/model/PLVChatDomainVO.d.ets +2 -2
- package/src/main/ets/modules/login/model/PLVChatDomainVO.js +4 -4
- package/src/main/ets/modules/login/model/PLVLiveChannelType.js +9 -9
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLiveDetailVO.js +2 -2
- package/src/main/ets/modules/login/model/PLVLiveStatus.js +9 -9
- package/src/main/ets/modules/login/model/PLVLiveStatusVO.js +6 -6
- package/src/main/ets/modules/login/model/PLVLoginLiveResult.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLoginLiveResult.js +4 -4
- package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.d.ets +1 -1
- package/src/main/ets/modules/login/model/PLVLoginPlaybackResult.js +5 -5
- package/src/main/ets/modules/login/model/PLVLoginType.d.ets +2 -2
- package/src/main/ets/modules/login/model/PLVLoginType.js +16 -16
- package/src/main/ets/modules/member/PLVMemberManager.d.ets +3 -3
- package/src/main/ets/modules/member/PLVMemberManager.js +10 -10
- package/src/main/ets/modules/member/mediator/PLVMemberMediator.d.ets +2 -2
- package/src/main/ets/modules/member/mediator/PLVMemberMediator.js +6 -6
- package/src/main/ets/modules/member/model/PLVMemberRepo.d.ets +1 -1
- package/src/main/ets/modules/member/model/PLVMemberRepo.js +6 -6
- package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.d.ets +2 -2
- package/src/main/ets/modules/member/model/datasource/PLVMemberNetworkDataSource.js +7 -7
- package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.d.ets +1 -1
- package/src/main/ets/modules/member/model/vo/PLVMemberChannelViewer.js +3 -3
- package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.d.ets +3 -3
- package/src/main/ets/modules/member/viewmodel/PLVMemberViewModel.js +15 -15
- package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.d.ets +6 -6
- package/src/main/ets/modules/member/viewmodel/usecase/MemberHandleStateUseCase.js +16 -16
- package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.d.ets +8 -8
- package/src/main/ets/modules/member/viewmodel/usecase/MemberUpdateViewerUseCase.js +19 -19
- package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.d.ets +1 -1
- package/src/main/ets/modules/member/viewmodel/usecase/PLVMemberUseCases.js +3 -3
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.d.ets +6 -6
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestHandleStateUseCase.js +60 -60
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.d.ets +8 -8
- package/src/main/ets/modules/member/viewmodel/usecase/roles/guest/MemberGuestUpdateViewerUseCase.js +202 -202
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.d.ets +6 -6
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherHandleStateUseCase.js +128 -128
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.d.ets +8 -8
- package/src/main/ets/modules/member/viewmodel/usecase/roles/teacher/MemberTeacherUpdateViewerUseCase.js +202 -202
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.d.ets +9 -9
- package/src/main/ets/modules/net/PLVApiChatPlvNetApi.js +30 -30
- package/src/main/ets/modules/net/PLVApiPlvNetApi.d.ets +29 -29
- package/src/main/ets/modules/net/PLVApiPlvNetApi.js +103 -103
- package/src/main/ets/modules/net/PLVELogPlvNetApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVELogPlvNetApi.js +4 -4
- package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.d.ets +3 -3
- package/src/main/ets/modules/net/PLVLiveImagesVideoNetApi.js +7 -7
- package/src/main/ets/modules/net/PLVNGBPushApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVNGBPushApi.js +4 -4
- package/src/main/ets/modules/net/PLVRtasVideoNetApi.d.ets +2 -2
- package/src/main/ets/modules/net/PLVRtasVideoNetApi.js +4 -4
- package/src/main/ets/modules/net/vo/PLVNetworkQuality.js +8 -8
- package/src/main/ets/modules/player/PLVPlayerManager.d.ets +2 -2
- package/src/main/ets/modules/player/PLVPlayerManager.js +6 -6
- package/src/main/ets/modules/player/PLVPlayerMediator.d.ets +1 -1
- package/src/main/ets/modules/player/PLVPlayerMediator.js +8 -8
- package/src/main/ets/modules/player/playback/PLVPlaybackListType.js +4 -4
- package/src/main/ets/modules/player/playback/PLVPreviousManager.d.ets +4 -4
- package/src/main/ets/modules/player/playback/PLVPreviousManager.js +48 -48
- package/src/main/ets/modules/ppt/PLVPPTWebController.d.ets +5 -5
- package/src/main/ets/modules/ppt/PLVPPTWebController.js +42 -42
- package/src/main/ets/modules/product/PLVProductManager.d.ets +4 -4
- package/src/main/ets/modules/product/PLVProductManager.js +48 -48
- package/src/main/ets/modules/product/components/PLVProductWeb.js +5 -5
- package/src/main/ets/modules/product/model/PLVProductContentBean.js +7 -7
- package/src/main/ets/modules/product/model/PLVProductControlEvent.js +4 -4
- package/src/main/ets/modules/product/model/PLVProductDataBean.d.ets +1 -1
- package/src/main/ets/modules/product/model/PLVProductDataBean.js +13 -13
- package/src/main/ets/modules/redpack/PLVRedpackManager.d.ets +9 -9
- package/src/main/ets/modules/redpack/PLVRedpackManager.js +61 -61
- package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.d.ets +1 -1
- package/src/main/ets/modules/redpack/database/PLVRedpackCacheVO.js +10 -10
- package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.d.ets +3 -3
- package/src/main/ets/modules/redpack/database/PLVRedpackLocalDataSource.js +18 -18
- package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.d.ets +3 -3
- package/src/main/ets/modules/redpack/database/PLVRedpackOpenHelper.js +4 -4
- package/src/main/ets/modules/reward/PLVRewardManager.d.ets +2 -2
- package/src/main/ets/modules/reward/PLVRewardManager.js +18 -18
- package/src/main/ets/modules/reward/model/PLVRewardSettingVO.js +8 -8
- package/src/main/ets/modules/socket/PLVSocketManager.d.ets +8 -8
- package/src/main/ets/modules/socket/PLVSocketManager.js +70 -70
- package/src/main/ets/modules/socket/PLVSocketMediator.d.ets +7 -7
- package/src/main/ets/modules/socket/PLVSocketMediator.js +14 -14
- package/src/main/ets/modules/socket/model/PLVSocketUserBean.d.ets +3 -3
- package/src/main/ets/modules/socket/model/PLVSocketUserBean.js +12 -12
- package/src/main/ets/modules/socket/model/PLVUserType.js +15 -15
- package/src/main/ets/modules/socket/model/interact/PLVCallAppEvent.js +5 -5
- package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.d.ets +3 -3
- package/src/main/ets/modules/socket/model/redpack/RedPaperReceiveType.js +13 -13
- package/src/main/ets/modules/streamer/PLVStreamerManager.d.ets +5 -5
- package/src/main/ets/modules/streamer/PLVStreamerManager.js +18 -18
- package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.d.ets +1 -1
- package/src/main/ets/modules/streamer/mediator/PLVStreamerMediator.js +2 -2
- package/src/main/ets/modules/streamer/model/PLVStreamerRepo.d.ets +3 -3
- package/src/main/ets/modules/streamer/model/PLVStreamerRepo.js +30 -30
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.d.ets +2 -2
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerLocalDataSource.js +8 -8
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.d.ets +7 -7
- package/src/main/ets/modules/streamer/model/datasource/PLVStreamerNetworkDataSource.js +32 -32
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixActionVO.js +15 -15
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerMixLayoutType.js +4 -4
- package/src/main/ets/modules/streamer/model/vo/PLVStreamerState.js +4 -4
- package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.d.ets +5 -5
- package/src/main/ets/modules/streamer/viewmodel/PLVStreamerViewModel.js +14 -14
- package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.d.ets +1 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/PLVStreamerUseCases.js +3 -3
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.d.ets +1 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerHandleStateUseCase.js +6 -6
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/StreamerMixStreamUseCase.js +7 -7
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.d.ets +1 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestHandleStateUseCase.js +27 -27
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/guest/StreamerGuestMixStreamUseCase.js +3 -3
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.d.ets +1 -1
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherHandleStateUseCase.js +14 -14
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.d.ets +2 -2
- package/src/main/ets/modules/streamer/viewmodel/usecase/roles/teacher/StreamerTeacherMixStreamUseCase.js +41 -41
- package/src/main/ets/modules/web/PLVSocketWebController.d.ets +2 -2
- package/src/main/ets/modules/web/PLVSocketWebController.js +19 -19
- package/src/main/ets/modules/web/PLVWebControllerManager.d.ets +2 -2
- package/src/main/ets/modules/web/PLVWebControllerManager.js +6 -6
- package/src/main/ets/modules/web/PLVWebParams.d.ets +1 -1
- package/src/main/ets/modules/web/PLVWebParams.js +20 -20
|
@@ -11,19 +11,19 @@ import { PLVProductMoveEvent } from './model/PLVProductMoveEvent';
|
|
|
11
11
|
import { PLVProductRemoveEvent } from './model/PLVProductRemoveEvent';
|
|
12
12
|
const TAG = '[PLVProductManager]';
|
|
13
13
|
export class PLVProductManager extends PLVBaseModule {
|
|
14
|
-
constructor(
|
|
15
|
-
super(
|
|
14
|
+
constructor(q149, r149) {
|
|
15
|
+
super(q149);
|
|
16
16
|
this.productDataBean = new PLVProductDataBean();
|
|
17
17
|
this.eventNotify = new PLVEventNotify(this);
|
|
18
|
-
this.socketMediator =
|
|
18
|
+
this.socketMediator = r149;
|
|
19
19
|
this.init();
|
|
20
20
|
}
|
|
21
|
-
notifyPush(
|
|
22
|
-
if (
|
|
21
|
+
notifyPush(p149) {
|
|
22
|
+
if (p149?.productId != this.productDataBean.pushContentBean?.productId) {
|
|
23
23
|
this.productDataBean.hotEffectClickTimes = 0;
|
|
24
24
|
}
|
|
25
|
-
this.productDataBean.hotEffectTips = this.getHotEffectTips(
|
|
26
|
-
this.productDataBean.pushContentBean =
|
|
25
|
+
this.productDataBean.hotEffectTips = this.getHotEffectTips(p149);
|
|
26
|
+
this.productDataBean.pushContentBean = p149;
|
|
27
27
|
this.eventNotify.emit('product_data', this.productDataBean.copy());
|
|
28
28
|
}
|
|
29
29
|
notifyOpen(isOpen) {
|
|
@@ -32,13 +32,13 @@ export class PLVProductManager extends PLVBaseModule {
|
|
|
32
32
|
this.productDataBean.isOpenProduct = isOpen;
|
|
33
33
|
this.eventNotify.emit('product_data', this.productDataBean.copy());
|
|
34
34
|
}
|
|
35
|
-
notifyClickTimes(
|
|
36
|
-
this.productDataBean.hotEffectClickTimes =
|
|
35
|
+
notifyClickTimes(o149) {
|
|
36
|
+
this.productDataBean.hotEffectClickTimes = o149;
|
|
37
37
|
this.eventNotify.emit('product_data', this.productDataBean.copy());
|
|
38
38
|
}
|
|
39
|
-
notifyMove(
|
|
39
|
+
notifyMove(n149) {
|
|
40
40
|
if (this.productDataBean.pushContentBean) {
|
|
41
|
-
this.productDataBean.pushContentBean.showId =
|
|
41
|
+
this.productDataBean.pushContentBean.showId = n149;
|
|
42
42
|
}
|
|
43
43
|
this.eventNotify.emit('product_data', this.productDataBean.copy());
|
|
44
44
|
}
|
|
@@ -47,15 +47,15 @@ export class PLVProductManager extends PLVBaseModule {
|
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
PLVLogger.info(TAG, 'notifyClick');
|
|
50
|
-
const
|
|
51
|
-
|
|
50
|
+
const m149 = new PLVLocalProductClickEvent();
|
|
51
|
+
m149.data = {
|
|
52
52
|
type: this.productDataBean.pushContentBean.productType,
|
|
53
53
|
positionName: this.productDataBean.pushContentBean.name,
|
|
54
54
|
productId: this.productDataBean.pushContentBean.productId,
|
|
55
55
|
nickName: this.channelData.viewerName
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
const data = PLVJSONUtils.safeStringify(
|
|
57
|
+
m149.roomId = await this.channelData.loginRoomIdPromise.get();
|
|
58
|
+
const data = PLVJSONUtils.safeStringify(m149);
|
|
59
59
|
this.socketMediator.emit(PLVSocketOnEvent.PRODUCT, data, () => {
|
|
60
60
|
PLVLogger.info(TAG, 'notifyClick success');
|
|
61
61
|
});
|
|
@@ -84,40 +84,40 @@ export class PLVProductManager extends PLVBaseModule {
|
|
|
84
84
|
}, this);
|
|
85
85
|
}
|
|
86
86
|
handleProductEvent(data) {
|
|
87
|
-
const
|
|
88
|
-
if (!
|
|
87
|
+
const h149 = PLVJSONUtils.json2Bean(PLVProductEvent, data);
|
|
88
|
+
if (!h149) {
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
|
-
if (
|
|
92
|
-
const
|
|
93
|
-
if (!
|
|
91
|
+
if (h149.isProductControlEvent()) {
|
|
92
|
+
const l149 = PLVJSONUtils.toFillData(PLVProductControlEvent, data);
|
|
93
|
+
if (!l149 || !l149.content) {
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
|
-
if (
|
|
97
|
-
if (!
|
|
98
|
-
|
|
96
|
+
if (l149.isRedact() && this.productDataBean.pushContentBean?.productId === l149.content.productId) {
|
|
97
|
+
if (!l149.content.productPushRule) {
|
|
98
|
+
l149.content.productPushRule = this.productDataBean.pushContentBean?.productPushRule;
|
|
99
99
|
}
|
|
100
|
-
this.notifyPush(
|
|
100
|
+
this.notifyPush(l149.content);
|
|
101
101
|
}
|
|
102
|
-
if (
|
|
103
|
-
this.notifyPush(
|
|
102
|
+
if (l149.isPush()) {
|
|
103
|
+
this.notifyPush(l149.content);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
else if (
|
|
107
|
-
const
|
|
108
|
-
if (!
|
|
106
|
+
else if (h149.isProductRemoveEvent()) {
|
|
107
|
+
const k149 = PLVJSONUtils.json2Bean(PLVProductRemoveEvent, data);
|
|
108
|
+
if (!k149 || !k149.content || !this.productDataBean.pushContentBean) {
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
-
if (this.productDataBean.pushContentBean.productId ===
|
|
111
|
+
if (this.productDataBean.pushContentBean.productId === k149.content.productId) {
|
|
112
112
|
this.notifyPush(undefined);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
else if (
|
|
116
|
-
const
|
|
117
|
-
if (!
|
|
115
|
+
else if (h149.isProductMoveEvent()) {
|
|
116
|
+
const j149 = PLVJSONUtils.json2Bean(PLVProductMoveEvent, data);
|
|
117
|
+
if (!j149 || !j149.content) {
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
j149.content.some((value) => {
|
|
121
121
|
if (this.productDataBean.pushContentBean?.productId === value.productId) {
|
|
122
122
|
this.notifyMove(value.showId);
|
|
123
123
|
return true;
|
|
@@ -125,37 +125,37 @@ export class PLVProductManager extends PLVBaseModule {
|
|
|
125
125
|
return false;
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
else if (
|
|
129
|
-
const
|
|
130
|
-
if (!
|
|
128
|
+
else if (h149.isProductMenuSwitchEvent()) {
|
|
129
|
+
const i149 = PLVJSONUtils.json2Bean(PLVProductMenuSwitchEvent, data);
|
|
130
|
+
if (!i149) {
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
|
-
if (('Y' ===
|
|
133
|
+
if (('Y' === i149.content?.enabled) === this.productDataBean.isOpenProduct) {
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
136
|
this.notifyOpen(!this.productDataBean.isOpenProduct);
|
|
137
137
|
}
|
|
138
|
-
else if (
|
|
138
|
+
else if (h149.isCancelPush()) {
|
|
139
139
|
this.notifyPush(undefined);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
handleClickTimesEvent(data) {
|
|
143
|
-
const
|
|
144
|
-
if (
|
|
145
|
-
if (
|
|
146
|
-
this.notifyClickTimes(
|
|
143
|
+
const g149 = PLVJSONUtils.json2Bean(PLVProductClickTimesEvent, data);
|
|
144
|
+
if (g149 && g149.times) {
|
|
145
|
+
if (g149.productId === this.productDataBean.pushContentBean?.productId) {
|
|
146
|
+
this.notifyClickTimes(g149.times);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
getHotEffectTips(
|
|
151
|
-
if (
|
|
152
|
-
if (
|
|
150
|
+
getHotEffectTips(f149) {
|
|
151
|
+
if (f149 && this.productHotEffectBean) {
|
|
152
|
+
if (f149.isNormalProduct()) {
|
|
153
153
|
return this.productHotEffectBean.normalProductTips;
|
|
154
154
|
}
|
|
155
|
-
else if (
|
|
155
|
+
else if (f149.isFinanceProduct()) {
|
|
156
156
|
return this.productHotEffectBean.financeProductTips;
|
|
157
157
|
}
|
|
158
|
-
else if (
|
|
158
|
+
else if (f149.isPositionProduct()) {
|
|
159
159
|
return this.productHotEffectBean.jobProductTips;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -122,15 +122,15 @@ export class PLVProductWeb extends ViewPU {
|
|
|
122
122
|
this.controller?.registerHandler(EVENT_TYPE_CLICK_PRODUCT_BUTTON, (data, callback) => {
|
|
123
123
|
const jsonObject = PLVJSONUtils.safeParse(data);
|
|
124
124
|
if (jsonObject) {
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
127
|
-
this.controller?.eventNotify.emit(EVENT_TYPE_CLICK_PRODUCT_BUTTON,
|
|
125
|
+
const u148 = PLVJSONUtils.bean2Bean(new PLVProductContentBean(), jsonObject['data']);
|
|
126
|
+
if (u148) {
|
|
127
|
+
this.controller?.eventNotify.emit(EVENT_TYPE_CLICK_PRODUCT_BUTTON, u148);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
this.controller?.registerHandler(EVENT_SHOW_JOB_DETAIL, (data, callback) => {
|
|
132
|
-
const
|
|
133
|
-
this.interactManager?.onShowJobDetail(
|
|
132
|
+
const t148 = PLVJSONUtils.json2Bean(PLVShowJobDetailEvent, data);
|
|
133
|
+
this.interactManager?.onShowJobDetail(t148);
|
|
134
134
|
});
|
|
135
135
|
this.controller?.addOnPageEnd(() => {
|
|
136
136
|
this.open();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (x148, target, key, desc) {
|
|
2
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
-
r = Reflect.decorate(
|
|
4
|
+
r = Reflect.decorate(x148, target, key, desc);
|
|
5
5
|
else
|
|
6
|
-
for (var
|
|
7
|
-
if (d = y148
|
|
6
|
+
for (var y148 = x148.length - 1; y148 >= 0; y148--)
|
|
7
|
+
if (d = x148[y148])
|
|
8
8
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
@@ -22,9 +22,9 @@ let PLVProductContentBean = class PLVProductContentBean {
|
|
|
22
22
|
}
|
|
23
23
|
isRealPriceEqualsPrice() {
|
|
24
24
|
if (this.realPrice && this.price) {
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
return
|
|
25
|
+
const v148 = parseFloat(this.realPrice);
|
|
26
|
+
const w148 = parseFloat(this.price);
|
|
27
|
+
return v148.toFixed(2) === w148.toFixed(2);
|
|
28
28
|
}
|
|
29
29
|
return false;
|
|
30
30
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (z148, target, key, desc) {
|
|
2
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
-
r = Reflect.decorate(
|
|
4
|
+
r = Reflect.decorate(z148, target, key, desc);
|
|
5
5
|
else
|
|
6
|
-
for (var
|
|
7
|
-
if (d = a149
|
|
6
|
+
for (var a149 = z148.length - 1; a149 >= 0; a149--)
|
|
7
|
+
if (d = z148[a149])
|
|
8
8
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (d149, target, key, desc) {
|
|
2
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
-
r = Reflect.decorate(
|
|
4
|
+
r = Reflect.decorate(d149, target, key, desc);
|
|
5
5
|
else
|
|
6
|
-
for (var
|
|
7
|
-
if (d = e149
|
|
6
|
+
for (var e149 = d149.length - 1; e149 >= 0; e149--)
|
|
7
|
+
if (d = d149[e149])
|
|
8
8
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
@@ -12,16 +12,16 @@ var PLVProductDataBean_1;
|
|
|
12
12
|
import { PLVTextUtils } from '@polyvharmony/live-scenes-foundation';
|
|
13
13
|
let PLVProductDataBean = PLVProductDataBean_1 = class PLVProductDataBean {
|
|
14
14
|
copy() {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
15
|
+
const c149 = new PLVProductDataBean_1();
|
|
16
|
+
c149.isOpenProduct = this.isOpenProduct;
|
|
17
|
+
c149.pushContentBean = this.pushContentBean;
|
|
18
|
+
c149.hotEffectEnable = this.hotEffectEnable;
|
|
19
|
+
c149.hotEffectTips = this.hotEffectTips;
|
|
20
|
+
c149.hotEffectClickTimes = this.hotEffectClickTimes;
|
|
21
|
+
return c149;
|
|
22
22
|
}
|
|
23
|
-
getHotEffectClickTimes(
|
|
24
|
-
if (!this.hotEffectClickTimes &&
|
|
23
|
+
getHotEffectClickTimes(b149 = true) {
|
|
24
|
+
if (!this.hotEffectClickTimes && b149) {
|
|
25
25
|
return undefined;
|
|
26
26
|
}
|
|
27
27
|
if ((this.hotEffectClickTimes || 0) > 9999) {
|
|
@@ -16,46 +16,46 @@ export declare class PLVRedpackManager extends PLVBaseModule {
|
|
|
16
16
|
private redpackMap;
|
|
17
17
|
private localDataSource;
|
|
18
18
|
eventDataNotify: IPLVEventNotify<EventDataType>;
|
|
19
|
-
constructor(
|
|
19
|
+
constructor(o151: PLVChannelData);
|
|
20
20
|
/**
|
|
21
21
|
* 缓存红包数据
|
|
22
22
|
* @param redPaperEvent
|
|
23
23
|
*/
|
|
24
|
-
cacheRedPaper(
|
|
24
|
+
cacheRedPaper(n151: PLVRedPaperEvent): void;
|
|
25
25
|
/**
|
|
26
26
|
* 获取红包数据
|
|
27
27
|
*/
|
|
28
|
-
getCachedRedPaper(
|
|
28
|
+
getCachedRedPaper(m151: string): PLVRedPaperEvent | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* 通过redpackId更新红包状态
|
|
31
31
|
* @param redpackId
|
|
32
32
|
* @param receiveType
|
|
33
33
|
*/
|
|
34
|
-
updateRedPaperReceiveStatus(
|
|
34
|
+
updateRedPaperReceiveStatus(j151?: string, k151?: RedPaperReceiveType): void;
|
|
35
35
|
/**
|
|
36
36
|
* 获取当前红包状态
|
|
37
37
|
* @param redPaperEvent
|
|
38
38
|
* @param channelId
|
|
39
39
|
* @param viewerId
|
|
40
40
|
*/
|
|
41
|
-
receiveRedPaper(
|
|
42
|
-
onRedPaperResultEvent(
|
|
41
|
+
receiveRedPaper(e151: PLVRedPaperEvent, f151?: string, g151?: string): Promise<void>;
|
|
42
|
+
onRedPaperResultEvent(c151: PLVRedPaperResultEvent): void;
|
|
43
43
|
/**
|
|
44
44
|
* 发送当前红包状态
|
|
45
45
|
* @param delayEvent
|
|
46
46
|
*/
|
|
47
|
-
notifyPostValue(
|
|
47
|
+
notifyPostValue(a151?: PLVRedPaperForDelayEvent): void;
|
|
48
48
|
/**
|
|
49
49
|
* 获取本地缓存的红包状态
|
|
50
50
|
* @param redpackId
|
|
51
51
|
* @returns
|
|
52
52
|
*/
|
|
53
|
-
getLocalCachedReceiveStatus(
|
|
53
|
+
getLocalCachedReceiveStatus(z150?: string): Promise<string>;
|
|
54
54
|
/**
|
|
55
55
|
* 更新延迟红包状态
|
|
56
56
|
* @param channelId
|
|
57
57
|
*/
|
|
58
|
-
updateDelayRedpackStatus(
|
|
58
|
+
updateDelayRedpackStatus(y150?: string): void;
|
|
59
59
|
/**
|
|
60
60
|
* 请求服务端获取红包状态
|
|
61
61
|
* @param redPackId
|
|
@@ -8,120 +8,120 @@ import { PLVRedPaperReceiveType } from '../socket/model/redpack/RedPaperReceiveT
|
|
|
8
8
|
import { PLVRedpackLocalDataSource } from './database/PLVRedpackLocalDataSource';
|
|
9
9
|
const TAG = '[PLVRedpackManager]';
|
|
10
10
|
export class PLVRedpackManager extends PLVBaseModule {
|
|
11
|
-
constructor(
|
|
12
|
-
super(
|
|
11
|
+
constructor(o151) {
|
|
12
|
+
super(o151);
|
|
13
13
|
this.redpackMap = new HashMap();
|
|
14
14
|
this.localDataSource = PLVRedpackLocalDataSource.getIntance();
|
|
15
15
|
this.eventDataNotify = new PLVEventNotify(this);
|
|
16
16
|
}
|
|
17
|
-
cacheRedPaper(
|
|
18
|
-
this.redpackMap.set(
|
|
17
|
+
cacheRedPaper(n151) {
|
|
18
|
+
this.redpackMap.set(n151.redpackId, n151);
|
|
19
19
|
}
|
|
20
|
-
getCachedRedPaper(
|
|
21
|
-
if (this.redpackMap.hasKey(
|
|
22
|
-
return this.redpackMap.get(
|
|
20
|
+
getCachedRedPaper(m151) {
|
|
21
|
+
if (this.redpackMap.hasKey(m151)) {
|
|
22
|
+
return this.redpackMap.get(m151);
|
|
23
23
|
}
|
|
24
24
|
return undefined;
|
|
25
25
|
}
|
|
26
|
-
updateRedPaperReceiveStatus(
|
|
27
|
-
if (this.channelData.loginChannelId === "" ||
|
|
26
|
+
updateRedPaperReceiveStatus(j151, k151) {
|
|
27
|
+
if (this.channelData.loginChannelId === "" || j151 === "" || k151 === undefined) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
30
|
+
const l151 = this.getCachedRedPaper(j151);
|
|
31
|
+
if (l151 === undefined) {
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
this.localDataSource.updateReceiveStatus(
|
|
34
|
+
l151.receiveType = k151;
|
|
35
|
+
this.localDataSource.updateReceiveStatus(l151, this.channelData.loginChannelId, this.channelData.viewerId, k151.value);
|
|
36
36
|
}
|
|
37
|
-
async receiveRedPaper(f151, g151
|
|
38
|
-
let
|
|
39
|
-
if (
|
|
40
|
-
|
|
41
|
-
this.localDataSource.updateReceiveStatus(f151, g151,
|
|
37
|
+
async receiveRedPaper(e151, f151, g151) {
|
|
38
|
+
let h151 = e151.receiveType;
|
|
39
|
+
if (h151?.value === PLVRedPaperReceiveType.AVAILABLE) {
|
|
40
|
+
e151.receiveType = PLVRedPaperReceiveType.getValue("AVAILABLE_CLICKED");
|
|
41
|
+
this.localDataSource.updateReceiveStatus(e151, f151, g151, e151.receiveType.value);
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
||
|
|
45
|
-
||
|
|
43
|
+
if (h151?.value === PLVRedPaperReceiveType.RECEIVED
|
|
44
|
+
|| h151?.value === PLVRedPaperReceiveType.EXPIRED
|
|
45
|
+
|| h151?.value === PLVRedPaperReceiveType.RUN_OUT) {
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
|
-
const value = await this.getReceiveStatus(
|
|
48
|
+
const value = await this.getReceiveStatus(e151.redpackId, e151.redCacheId);
|
|
49
49
|
if (value == undefined) {
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
|
|
55
|
-
this.localDataSource.updateReceiveStatus(f151, g151,
|
|
52
|
+
const i151 = PLVRedPaperReceiveType.matchOrDefault(value, PLVRedPaperReceiveType.AVAILABLE);
|
|
53
|
+
if (i151.value !== PLVRedPaperReceiveType.AVAILABLE) {
|
|
54
|
+
e151.receiveType = i151;
|
|
55
|
+
this.localDataSource.updateReceiveStatus(e151, f151, g151, i151.value);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
onRedPaperResultEvent(
|
|
59
|
-
if (!
|
|
58
|
+
onRedPaperResultEvent(c151) {
|
|
59
|
+
if (!c151.isSupportType() || !c151.redpackId) {
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
this.localDataSource.updateReceiveStatus(
|
|
62
|
+
if (c151.isRedPaperRunOut()) {
|
|
63
|
+
const d151 = this.getCachedRedPaper(c151.redpackId);
|
|
64
|
+
if (d151 !== undefined && d151.receiveType?.value === PLVRedPaperReceiveType.AVAILABLE) {
|
|
65
|
+
d151.receiveType = PLVRedPaperReceiveType.getValue("RUN_OUT");
|
|
66
|
+
this.localDataSource.updateReceiveStatus(d151, this.channelData.loginChannelId, this.channelData.viewerId, d151.receiveType.value);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
notifyPostValue(
|
|
71
|
-
if (
|
|
70
|
+
notifyPostValue(a151) {
|
|
71
|
+
if (a151 === undefined) {
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
|
-
if (!
|
|
74
|
+
if (!a151?.isSupportType()) {
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
this.eventDataNotify.emit('redpack_data',
|
|
77
|
+
const b151 = new PLVDelayRedpackVO();
|
|
78
|
+
b151.redpackSendTime = a151.delayTime !== undefined ? a151.delayTime * 1000 + Date.now() : 0;
|
|
79
|
+
this.eventDataNotify.emit('redpack_data', b151);
|
|
80
80
|
}
|
|
81
|
-
async getLocalCachedReceiveStatus(
|
|
82
|
-
const status = await this.localDataSource.getReceiveStatus(
|
|
81
|
+
async getLocalCachedReceiveStatus(z150) {
|
|
82
|
+
const status = await this.localDataSource.getReceiveStatus(z150, this.channelData.viewerId);
|
|
83
83
|
return status;
|
|
84
84
|
}
|
|
85
|
-
updateDelayRedpackStatus(
|
|
86
|
-
this.getDelayRedpackStatus(
|
|
85
|
+
updateDelayRedpackStatus(y150) {
|
|
86
|
+
this.getDelayRedpackStatus(y150).then((value) => {
|
|
87
87
|
this.eventDataNotify.emit('redpack_data', value);
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
getReceiveStatus(
|
|
91
|
-
return PLVUtils.safePromise(async (
|
|
92
|
-
const
|
|
93
|
-
.getRedpackReceiveStatus(this.channelData.loginChannelId, this.channelData.appId, this.channelData.viewerId,
|
|
90
|
+
getReceiveStatus(u150, v150) {
|
|
91
|
+
return PLVUtils.safePromise(async (w150, reject) => {
|
|
92
|
+
const x150 = await apiPlvNetApi(this.channelData)
|
|
93
|
+
.getRedpackReceiveStatus(this.channelData.loginChannelId, this.channelData.appId, this.channelData.viewerId, u150, v150, this.channelData.appSecret)
|
|
94
94
|
.catch((err) => {
|
|
95
95
|
return Promise.reject(err.log(TAG, 'getRedpackReceiveStatus error'));
|
|
96
96
|
});
|
|
97
|
-
const data =
|
|
98
|
-
const success =
|
|
97
|
+
const data = x150.data['data'];
|
|
98
|
+
const success = x150.data['success'];
|
|
99
99
|
if (!success) {
|
|
100
100
|
return Promise.reject(new Error('getRedpackReceiveStatus error'));
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
w150(data['state']);
|
|
103
103
|
return;
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
getDelayRedpackStatus(
|
|
107
|
-
return PLVUtils.safePromise(async (
|
|
108
|
-
const
|
|
106
|
+
getDelayRedpackStatus(p150) {
|
|
107
|
+
return PLVUtils.safePromise(async (q150, reject) => {
|
|
108
|
+
const r150 = await apiPlvNetApi(this.channelData)
|
|
109
109
|
.getDelayRedpackStatus(this.channelData.loginChannelId, this.channelData.appId).catch((err) => {
|
|
110
110
|
return Promise.reject(err.log(TAG, 'getDelayRedpackStatus error'));
|
|
111
111
|
});
|
|
112
|
-
const data =
|
|
113
|
-
const success =
|
|
112
|
+
const data = r150.data['data'];
|
|
113
|
+
const success = r150.data['success'];
|
|
114
114
|
if (!success) {
|
|
115
115
|
return Promise.reject(new Error('getDelayRedpackStatus error'));
|
|
116
116
|
}
|
|
117
|
-
const
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
117
|
+
const s150 = PLVJSONUtils.json2Bean(PLVDelayRedpackStatusVO, PLVJSONUtils.safeStringify(data));
|
|
118
|
+
const t150 = new PLVDelayRedpackVO();
|
|
119
|
+
if (s150 === undefined) {
|
|
120
120
|
return Promise.reject(new Error('getDelayRedpackStatus error'));
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
t150.redpackSendTime = s150?.sendTime;
|
|
123
|
+
t150.blessing = s150?.greeting;
|
|
124
|
+
q150(t150);
|
|
125
125
|
return;
|
|
126
126
|
});
|
|
127
127
|
}
|
|
@@ -5,5 +5,5 @@ export declare class PLVRedpackCacheVO {
|
|
|
5
5
|
roomId: string;
|
|
6
6
|
viewerId: string;
|
|
7
7
|
redPaperReceiveType: string;
|
|
8
|
-
constructor(primaryKey: string,
|
|
8
|
+
constructor(primaryKey: string, s149: string, t149: string, u149: string, v149: string, w149: string);
|
|
9
9
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (x149, target, key, desc) {
|
|
2
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
-
r = Reflect.decorate(
|
|
4
|
+
r = Reflect.decorate(x149, target, key, desc);
|
|
5
5
|
else
|
|
6
|
-
for (var
|
|
7
|
-
if (d = y149
|
|
6
|
+
for (var y149 = x149.length - 1; y149 >= 0; y149--)
|
|
7
|
+
if (d = x149[y149])
|
|
8
8
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
import { Columns, ColumnType, Entity, Id, NotNull, Unique } from '@ohos/dataorm';
|
|
12
12
|
const REDPACK_TABLE = "plv_redpack_cache_table";
|
|
13
13
|
let PLVRedpackCacheVO = class PLVRedpackCacheVO {
|
|
14
|
-
constructor(primaryKey, t149, u149, v149, w149
|
|
14
|
+
constructor(primaryKey, s149, t149, u149, v149, w149) {
|
|
15
15
|
this.primaryKey = primaryKey;
|
|
16
|
-
this.redpackId =
|
|
17
|
-
this.redCacheId =
|
|
18
|
-
this.roomId =
|
|
19
|
-
this.viewerId =
|
|
20
|
-
this.redPaperReceiveType =
|
|
16
|
+
this.redpackId = s149;
|
|
17
|
+
this.redCacheId = t149;
|
|
18
|
+
this.roomId = u149;
|
|
19
|
+
this.viewerId = v149;
|
|
20
|
+
this.redPaperReceiveType = w149;
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
__decorate([
|
|
@@ -9,7 +9,7 @@ export declare class PLVRedpackLocalDataSource {
|
|
|
9
9
|
private constructor();
|
|
10
10
|
static getIntance(): PLVRedpackLocalDataSource;
|
|
11
11
|
initDB(context: common.UIAbilityContext): Promise<void>;
|
|
12
|
-
updateReceiveStatus(event: PLVRedPaperEvent,
|
|
13
|
-
getReceiveStatus(
|
|
14
|
-
static createPrimaryKey(
|
|
12
|
+
updateReceiveStatus(event: PLVRedPaperEvent, e150?: string, f150?: string, type?: string): Promise<void>;
|
|
13
|
+
getReceiveStatus(b150?: string, c150?: string): Promise<string>;
|
|
14
|
+
static createPrimaryKey(z149: string, a150: string): string;
|
|
15
15
|
}
|