Ver Fonte

templte compare 10 v2

zz há 6 anos atrás
pai
commit
754f0350f2
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      app/Http/Controllers/Wap/Book/ChapterController.php

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

@@ -1311,7 +1311,8 @@ class ChapterController extends BaseController
 
         if($template_10_no_abtest_site &&
             in_array($this->distribution_channel_id,explode(',',$template_10_no_abtest_site))  &&
-            DataAnalysisSelectUserService::getByUidAndType($this->uid, 'TEMPLATE_COMPAREV10_2')
+            ($info = DataAnalysisSelectUserService::getByUidAndType($this->uid, 'TEMPLATE_COMPAREV10_2')) &&
+            $info->attach
         ){
             if($fee <37) $fee = 37;
             if($fee >45) $fee = 45;