@@ -48,6 +48,8 @@ public abstract class BaseWxChannelServiceImpl<H, P> implements WxChannelService
48
48
private final WxChannelSharerService sharerService = new WxChannelSharerServiceImpl (this );
49
49
private final WxChannelFundService fundService = new WxChannelFundServiceImpl (this );
50
50
private WxStoreHomePageService homePageService = null ;
51
+ private WxStoreCooperationService cooperationService = null ;
52
+ private WxChannelCompassShopService compassShopService = null ;
51
53
private WxLeagueWindowService leagueWindowService = null ;
52
54
private WxLeagueSupplierService leagueSupplierService = null ;
53
55
private WxLeaguePromoterService leaguePromoterService = null ;
@@ -56,10 +58,8 @@ public abstract class BaseWxChannelServiceImpl<H, P> implements WxChannelService
56
58
private WxFinderLiveService finderLiveService = null ;
57
59
private WxAssistantService assistantService = null ;
58
60
private WxChannelVipService vipService = null ;
59
- private final WxChannelCompassFinderService compassFinderService =
60
- new WxChannelCompassFinderServiceImpl (this );
61
- private final WxChannelLiveDashboardService liveDashboardService =
62
- new WxChannelLiveDashboardServiceImpl (this );
61
+ private WxChannelCompassFinderService compassFinderService = null ;
62
+ private WxChannelLiveDashboardService liveDashboardService = null ;
63
63
64
64
protected WxChannelConfig config ;
65
65
private int retrySleepMillis = 1000 ;
@@ -376,6 +376,22 @@ public synchronized WxStoreHomePageService getHomePageService() {
376
376
return homePageService ;
377
377
}
378
378
379
+ @ Override
380
+ public synchronized WxStoreCooperationService getCooperationService () {
381
+ if (cooperationService == null ) {
382
+ cooperationService = new WxStoreCooperationServiceImpl (this );
383
+ }
384
+ return cooperationService ;
385
+ }
386
+
387
+ @ Override
388
+ public synchronized WxChannelCompassShopService getCompassShopService () {
389
+ if (compassShopService == null ) {
390
+ compassShopService = new WxChannelCompassShopServiceImpl (this );
391
+ }
392
+ return compassShopService ;
393
+ }
394
+
379
395
@ Override
380
396
public synchronized WxLeagueWindowService getLeagueWindowService () {
381
397
if (leagueWindowService == null ) {
@@ -409,23 +425,23 @@ public synchronized WxLeagueProductService getLeagueProductService() {
409
425
}
410
426
411
427
@ Override
412
- public WxLeadComponentService getLeadComponentService () {
428
+ public synchronized WxLeadComponentService getLeadComponentService () {
413
429
if (leadComponentService == null ) {
414
430
leadComponentService = new WxLeadComponentServiceImpl (this );
415
431
}
416
432
return leadComponentService ;
417
433
}
418
434
419
435
@ Override
420
- public WxFinderLiveService getFinderLiveService () {
436
+ public synchronized WxFinderLiveService getFinderLiveService () {
421
437
if (finderLiveService == null ) {
422
438
finderLiveService = new WxFinderLiveServiceImpl (this );
423
439
}
424
440
return finderLiveService ;
425
441
}
426
442
427
443
@ Override
428
- public WxAssistantService getAssistantService () {
444
+ public synchronized WxAssistantService getAssistantService () {
429
445
if (assistantService == null ) {
430
446
assistantService = new WxAssistantServiceImpl (this ) {
431
447
};
@@ -434,17 +450,27 @@ public WxAssistantService getAssistantService() {
434
450
}
435
451
436
452
@ Override
437
- public WxChannelVipService getVipService () {
453
+ public synchronized WxChannelVipService getVipService () {
438
454
if (vipService == null ) {
439
455
vipService = new WxChannelVipServiceImpl (this );
440
456
}
441
457
return vipService ;
442
458
}
443
459
444
460
@ Override
445
- public WxChannelCompassFinderService getCompassFinderService () { return compassFinderService ; }
461
+ public synchronized WxChannelCompassFinderService getCompassFinderService () {
462
+ if (compassFinderService == null ) {
463
+ compassFinderService = new WxChannelCompassFinderServiceImpl (this );
464
+ }
465
+ return compassFinderService ;
466
+ }
446
467
447
468
@ Override
448
- public WxChannelLiveDashboardService getLiveDashboardService () { return liveDashboardService ; }
469
+ public synchronized WxChannelLiveDashboardService getLiveDashboardService () {
470
+ if (liveDashboardService == null ) {
471
+ liveDashboardService = new WxChannelLiveDashboardServiceImpl (this );
472
+ }
473
+ return liveDashboardService ;
474
+ }
449
475
450
476
}
0 commit comments