瀏覽代碼

ad expand exposure

zz 6 年之前
父節點
當前提交
b73c75f5f1

+ 7 - 7
app/Http/Controllers/Wap/Book/ChapterController.php

@@ -778,7 +778,7 @@ class ChapterController extends BaseController
         //#短篇推送长篇需求#
         //$this->shortPushLong();
         //#短推长、短推短对比
-        $this->shortPushshort();
+        //$this->shortPushshort();
         //阅读器分享
         $this->share();
         //广告
@@ -812,7 +812,8 @@ class ChapterController extends BaseController
         //阅读底部强关图片 只有123有
         $this->chapter->is_had_subscribe = 0;
         //广告
-        $this->chapter->is_show_ad = 0;
+        $this->chapter->is_show_ad = 0;//可不可点击
+        $this->chapter->is_visiable_ad = 0;//可不可显示
     }
 
     private function sign()
@@ -871,10 +872,6 @@ class ChapterController extends BaseController
         return false;
     }
 
-    private function getOfficialAccountForceReadNotice()
-    {
-
-    }
 
     //强关页面的统计
     private function subscribeStats()
@@ -1795,6 +1792,9 @@ class ChapterController extends BaseController
         //付费用户没有广告
         if(OrderService::isPaidUser($this->uid))  return ;
         //如果下一张已经付费,广告不显示
+        //广告都显示
+        $this->chapter->is_visiable_ad = 1;
+        AdVisitStatService::create($this->uid,$this->book_info->bid,$this->cid,'EXPOSURE');
         if($this->getOrderRecord($this->book_info->bid, $cid)){
             return ;
         }
@@ -1810,7 +1810,7 @@ class ChapterController extends BaseController
 
         if( $flag ){
             $this->chapter->is_show_ad = 1;
-            AdVisitStatService::create($this->uid,$this->book_info->bid,$this->cid,'EXPOSURE');
+            AdVisitStatService::create($this->uid,$this->book_info->bid,$this->cid,'CAN_CLICK');
         }
     }
 

+ 1 - 0
app/Http/Controllers/Wap/Book/Transformers/ChapterTransformer.php

@@ -33,6 +33,7 @@ class ChapterTransformer
             'share_url'=>isset($chapter->share_url)?$chapter->share_url:'',
             'js_config'=>isset($chapter->js_config)?$chapter->js_config:'',
             'is_show_ad'=>isset($chapter->is_show_ad)?$chapter->is_show_ad:'',
+            'is_visiable_ad'=>isset($chapter->is_visiable_ad)?$chapter->is_visiable_ad:0,
             //'is_had_subscribe'=>0
             //'is_need_subscirbe'   =>  $chapter->is_need_subscirbe,
         ];