|
@@ -488,7 +488,7 @@ class WelcomeController extends BaseController
|
|
|
//\Log::info(':'.($this->uid).'force_subs1:'.json_encode($force_subscribe_info));
|
|
|
}
|
|
|
if(!$force_subscribe_info){
|
|
|
- return ['appad'=>false,'appad_banner'=>'','appad_url'=>''];
|
|
|
+ return false;
|
|
|
}
|
|
|
$force_sub_user_by_openid = ForceSubscribeUserIService::getForceSubscribeByUidOpenid($this->uid);
|
|
|
if($force_sub_user_by_openid){
|
|
@@ -499,15 +499,11 @@ class WelcomeController extends BaseController
|
|
|
(time()-strtotime($force_subscribe_info->subscribe_time) >=3*86400)
|
|
|
&& !OrderService::isPaidUserByOpenid($force_subscribe_info->openid) &&
|
|
|
!AdvertiseUserQueueService::getUserAdvertise($this->uid) &&
|
|
|
- in_array($this->distribution_channel_id,explode(',',env('ADS_OPEN_SITE')))
|
|
|
+ in_array($this->distribution_channel_id,explode(',',env('SHARE_OPEN_SITE')))
|
|
|
){
|
|
|
- return [
|
|
|
- 'appad'=>true,
|
|
|
- 'appad_banner'=>'https://cdn-novel.iycdm.com/h5/app-ad-banner.jpg',
|
|
|
- 'appad_url'=>'/advertise/show?uid='.Hashids::encode($this->uid)
|
|
|
- ];
|
|
|
+ return true;
|
|
|
}
|
|
|
- return ['appad'=>false,'appad_banner'=>'','appad_url'=>''];
|
|
|
+ return false;
|
|
|
}
|
|
|
|
|
|
//CPC广告的优化逻辑
|