|
@@ -230,9 +230,9 @@ class OrdersController extends BaseController
|
|
$template_id = $compare_id;
|
|
$template_id = $compare_id;
|
|
}
|
|
}
|
|
}*/
|
|
}*/
|
|
- /*if( ($compare_id = $this->templateCompare()) ){
|
|
|
|
|
|
+ if( ($compare_id = $this->templateCompareV3()) ){
|
|
$template_id = $compare_id;
|
|
$template_id = $compare_id;
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
|
|
|
|
/*if( ($comparev2_id = $this->templateCompareV2()) ){
|
|
/*if( ($comparev2_id = $this->templateCompareV2()) ){
|
|
$template_id = $comparev2_id;
|
|
$template_id = $comparev2_id;
|
|
@@ -752,14 +752,14 @@ class OrdersController extends BaseController
|
|
//测试3天(测试时长看数据分析组建议)后,分别统计两个模板下的用户数、付费用户数和充值总额.
|
|
//测试3天(测试时长看数据分析组建议)后,分别统计两个模板下的用户数、付费用户数和充值总额.
|
|
private function templateCompareV3()
|
|
private function templateCompareV3()
|
|
{
|
|
{
|
|
- $start_time = redisEnv('TEMPLATE_COMPARE_START_TIME', 0);
|
|
|
|
|
|
+ $start_time = redisEnv('TEMPLATE_COMPARE_START_TIME_4', 0);
|
|
if (!$start_time) {
|
|
if (!$start_time) {
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
- $template_compare_sites = redisEnv('TEMPLATE_COMPARE_SITES', 0);
|
|
|
|
|
|
+ //$template_compare_sites = redisEnv('TEMPLATE_COMPARE_SITES', 0);
|
|
|
|
|
|
- if (!in_array($this->distribution_channel_id, explode(',', $template_compare_sites))) {
|
|
|
|
|
|
+ if (!in_array($this->distribution_channel_id,[2,5,8,14,123,146,155,160,255,256,691,695,722,4025,4053,4174,4236,4237,4241,4326,4334,4364,4426,4427,4487,4488,4556,4593,4742,4889,4891,5611,6122,6123,6124,6929,6987] )) {
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
$user = $this->_user_info;
|
|
$user = $this->_user_info;
|
|
@@ -767,15 +767,15 @@ class OrdersController extends BaseController
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
- $user = DataAnalysisSelectUserService::getByUidAndType($this->uid, 'TEMPLATE_COMPAREV3');
|
|
|
|
|
|
+ $user = DataAnalysisSelectUserService::getByUidAndType($this->uid, 'TEMPLATE_COMPAREV4');
|
|
if ($user) {
|
|
if ($user) {
|
|
$template_id = $user->attach;
|
|
$template_id = $user->attach;
|
|
} else {
|
|
} else {
|
|
- $template_id = $this->uid % 2 == 0 ? 1 : 9;
|
|
|
|
|
|
+ $template_id = $this->uid % 2 == 0 ? 1 : 13;
|
|
DataAnalysisSelectUserService::create(
|
|
DataAnalysisSelectUserService::create(
|
|
$this->uid,
|
|
$this->uid,
|
|
$this->distribution_channel_id,
|
|
$this->distribution_channel_id,
|
|
- 'TEMPLATE_COMPAREV3',
|
|
|
|
|
|
+ 'TEMPLATE_COMPAREV4',
|
|
-1, $template_id);
|
|
-1, $template_id);
|
|
}
|
|
}
|
|
|
|
|