@@ -828,9 +828,6 @@ class ChapterController extends BaseController
return false;
}
- if(in_array($this->distribution_channel_id,[166])){
- return ['error_type' => 'WAP_NOT_SUBSCRIBE', 'data' => ['src' => 'http://a.veiyouw.com/replace/uSMJS5Pa1550310949446']];
- }
//如果是链接强关,则跳转
$sub_type = $this->getSubscribeType($officialAccount->appid, $this->book_info->bid);
@@ -633,29 +633,22 @@ class OrdersController extends BaseController
private function templateCompare(){
//if(!in_array($this->distribution_channel_id,[2,14,211,155,4427,4488,256,691,146,255,722,4364,5,202,318,4237,266,196,273,4236,148,8,4241,160,271,4053,123,4334,4487,4593,695,4025,4426,4174])){
- $start_time = env('TEMPLATE_COMPARE_START_TIME_3',0);
+ /*$start_time = env('TEMPLATE_COMPARE_START_TIME_3',0);
if(!$start_time){
return 0;
+ }*/
if(!in_array($this->distribution_channel_id,[14,123,211,5,8,160,4236,4237,4241,374,243,244,245,320,321,324,337,338,538,539,751,752,753,754,4331,4384,4578,4580,4768,4769,4778,130,163,164,165,166,4126])){
- $user = $this->_user_info;
- if(strtotime($user->created_at) < $start_time){
+ //$user = $this->_user_info;
+ /*if(strtotime($user->created_at) < $start_time){
-
+ $template_id = 0;
$user = DataAnalysisSelectUserService::getByUidAndType($this->uid,'TEMPLATE_COMPARE_V3');
if($user){
$template_id = $user->attach;
- }else{
- $template_id = $this->uid % 2 == 0? 2:4;
- DataAnalysisSelectUserService::create(
- $this->uid,
- $this->distribution_channel_id,
- 'TEMPLATE_COMPARE_V3',
- -1, $template_id);
return $template_id;