|
@@ -1097,14 +1097,17 @@ class ChapterController extends BaseController
|
|
|
if($this->send_order_id){
|
|
|
$send_order_info = SendOrderService::getById($this->send_order_id);
|
|
|
}
|
|
|
- $send_order_subsribe_status = Redis::hget('channel:setting:'.$this->distribution_channel_id,'send_order_subscribe');
|
|
|
- if(is_null($send_order_subsribe_status)){
|
|
|
+ $send_order_subscribe_status = Redis::hget('channel:setting:'.$this->distribution_channel_id,'send_order_subscribe');
|
|
|
+ /*if(is_null($send_order_subsribe_status)){
|
|
|
$send_order_subsribe_status = 0;
|
|
|
- }
|
|
|
- $send_order_subsribe_status = 0;
|
|
|
- if($send_order_subsribe_status &&
|
|
|
+ }*/
|
|
|
+ //$send_order_subscribe_status = 0;
|
|
|
+ if($send_order_subscribe_status &&
|
|
|
$send_order_info &&
|
|
|
- $send_order_info->promotion_type == 'EXTERNAL'
|
|
|
+ $send_order_info->promotion_type == 'EXTERNAL' &&
|
|
|
+ $send_order_info->send_time &&
|
|
|
+ strtotime($send_order_info->send_time) >= 1557712800
|
|
|
+
|
|
|
){
|
|
|
$subscribe_info = ForceSubscribeUserIService::subscribes($this->uid,$this->distribution_channel_id,$this->send_order_id);
|
|
|
$this->need_subscribe_appid = $subscribe_info['appid'];
|