Browse Source

cpc test uid

zz 6 năm trước cách đây
mục cha
commit
a43233862d
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      app/Http/Controllers/Wap/Book/ChapterController.php

+ 3 - 1
app/Http/Controllers/Wap/Book/ChapterController.php

@@ -1795,7 +1795,9 @@ class ChapterController extends BaseController
     private function isShowAd(){
         if (in_array($this->uid, explode(',', env('TEST_CPC_UID')))) {
             $this->chapter->is_visiable_ad = 1;
-            $this->chapter->is_show_ad = 1;
+            if($this->chapter->is_vip){
+                $this->chapter->is_show_ad = 1;
+            }
             return ;
         }
         $ad_status = env('AD_STATUS',1);