Browse Source

send_order_subscribe

zz 6 năm trước cách đây
mục cha
commit
38c1c70fdc
1 tập tin đã thay đổi với 9 bổ sung6 xóa
  1. 9 6
      app/Http/Controllers/Wap/Book/ChapterController.php

+ 9 - 6
app/Http/Controllers/Wap/Book/ChapterController.php

@@ -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'];