|
@@ -240,9 +240,9 @@ class OrdersController extends BaseController
|
|
|
$template_id = $compare_id;
|
|
|
}*/
|
|
|
|
|
|
- /*if( ($comparev2_id = $this->templateCompareV2()) ){
|
|
|
+ if( ($comparev2_id = $this->templateCompareV2()) ){
|
|
|
$template_id = $comparev2_id;
|
|
|
- }*/
|
|
|
+ }
|
|
|
$outstandingYearOrder = $this->outstandingYearOrder($this->uid);
|
|
|
\Log::info('recordFirstIntoPayPage:$template_id:' . $template_id);
|
|
|
$res = ProductService::getChargeProduct($template_id);
|
|
@@ -701,27 +701,32 @@ class OrdersController extends BaseController
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- if (!in_array($this->distribution_channel_id, [2, 146, 155, 255, 256, 691, 722, 4364, 695, 4174, 4025, 4593, 4426, 4742, 4053, 4334, 4487])) {
|
|
|
+ $template_10_site = redisEnv('TEMPLATE_10_SITE','');
|
|
|
+ if(!$template_10_site){
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ if (!in_array($this->distribution_channel_id,explode(',',$template_10_site))) {
|
|
|
return 0;
|
|
|
}
|
|
|
+
|
|
|
$user = $this->_user_info;
|
|
|
if (strtotime($user->created_at) < $start_time) {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- $user = DataAnalysisSelectUserService::getByUidAndType($this->uid, 'TEMPLATE_COMPAREV2');
|
|
|
+ $user = DataAnalysisSelectUserService::getByUidAndType($this->uid, 'TEMPLATE_COMPAREV10');
|
|
|
if ($user) {
|
|
|
- $template_id = $user->attach;
|
|
|
+ return $user->attach;
|
|
|
} else {
|
|
|
- $template_id = $this->uid % 2 == 0 ? 1 : 6;
|
|
|
- DataAnalysisSelectUserService::create(
|
|
|
- $this->uid,
|
|
|
- $this->distribution_channel_id,
|
|
|
- 'TEMPLATE_COMPAREV2',
|
|
|
- -1, $template_id);
|
|
|
+ if( $this->uid % 2 == 0 ){
|
|
|
+ DataAnalysisSelectUserService::create(
|
|
|
+ $this->uid,
|
|
|
+ $this->distribution_channel_id,
|
|
|
+ 'TEMPLATE_COMPAREV10',
|
|
|
+ -1, 10);
|
|
|
+ }
|
|
|
+ return 10;
|
|
|
}
|
|
|
-
|
|
|
- return $template_id;
|
|
|
}
|
|
|
|
|
|
//进入4593的心注册用户,若当前阅读的是短篇书籍,则根据注册id的奇偶分别进入AB两个充值模板。
|