|
@@ -1291,11 +1291,18 @@ class ChapterController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- $template_10_site = redisEnv('TEMPLATE_10_SITE','');
|
|
|
- if($template_10_site && in_array($this->distribution_channel_id,explode(',',$template_10_site))){
|
|
|
- if($fee <=37) $fee = 37;
|
|
|
+ //$template_10_site = redisEnv('TEMPLATE_10_SITE','');
|
|
|
+ list($template_10_site,$template_10_no_abtest_site) = redisEnvMulti('TEMPLATE_10_SITE','TEMPLATE_10_NO_AB_TEST_SITE');
|
|
|
+ $start_time = env('TEMPLATE_COMPARE_START_TIME', 0);
|
|
|
+ if($start_time && $template_10_site && in_array($this->distribution_channel_id,explode(',',$template_10_site))){
|
|
|
+ if($this->uid %2 == 0 && strtotime($this->user->created_at) > $start_time){
|
|
|
+ if($fee <37) $fee = 37;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+ if($template_10_no_abtest_site && in_array($this->distribution_channel_id,explode(',',$template_10_no_abtest_site)) ){
|
|
|
+ if($fee <37) $fee = 37;
|
|
|
+ }
|
|
|
return $fee;
|
|
|
}
|
|
|
|