Browse Source

templte compare 10 v2

zz 6 years ago
parent
commit
754f0350f2
1 changed files with 2 additions and 1 deletions
  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 &&
         if($template_10_no_abtest_site &&
             in_array($this->distribution_channel_id,explode(',',$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 <37) $fee = 37;
             if($fee >45) $fee = 45;
             if($fee >45) $fee = 45;