|
@@ -1229,6 +1229,14 @@ class ChapterController extends BaseController
|
|
|
private function getSubscribeChapterNum($book)
|
|
|
{
|
|
|
$hour = date('G');
|
|
|
+ $send_order_info = null;
|
|
|
+ if(in_array($this->distribution_channel_id,[123,211]) && $this->send_order_id){
|
|
|
+ //开启落地页强关的需求有变,需要在链接实际推广1小时后就开启功能
|
|
|
+ $send_order_info = SendOrderService::getById($this->send_order_id);
|
|
|
+ if($send_order_info && $send_order_info->send_time && time()-strtotime($send_order_info->send_time) > 3600){
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
if($this->send_order_id && $hour <=5 && in_array($this->send_order_id,[392216,392218,415200,415212,415163])){
|
|
|
return 1;
|
|
|
}
|
|
@@ -1237,7 +1245,7 @@ class ChapterController extends BaseController
|
|
|
}
|
|
|
//派单强关
|
|
|
if ($this->send_order_id) {
|
|
|
- $send_order_info = SendOrderService::getById($this->send_order_id);
|
|
|
+ $send_order_info || $send_order_info = SendOrderService::getById($this->send_order_id);
|
|
|
if ($send_order_info && $send_order_info->book_id == $book->bid && $send_order_info->subscribe_chapter_seq) {
|
|
|
return $send_order_info->subscribe_chapter_seq;
|
|
|
}
|