zqwang 2 years ago
parent
commit
e1a8bea1ad
1 changed files with 4 additions and 2 deletions
  1. 4 2
      app/Http/Controllers/QuickApp/Book/ChapterController.php

+ 4 - 2
app/Http/Controllers/QuickApp/Book/ChapterController.php

@@ -286,7 +286,9 @@ class ChapterController extends BaseController
             $book_info->is_on_shelf = 0;
         }
         // 华为整改强制下架
-
+        if ($this->distribution_channel_id == 13131 && in_array($bid,[13762,65327,66643])){
+            $book_info->is_on_shelf  = 4;
+        }
 
         if (!in_array($book_info->is_on_shelf, [1, 2])) {
             if ($book_info->is_on_shelf != 4) {
@@ -302,7 +304,7 @@ class ChapterController extends BaseController
                     //是否购买过该书,购买过则不删除
                     $res = BookOrderService::getRecordByuidBid($this->uid, $bid);
                 } elseif ($charge_type == 'CHAPTER') {
-                    if ($package == 13131 && in_array($bid,[13762,65327,66643])){
+                    if ($this->distribution_channel_id == 13131 && in_array($bid,[13762,65327,66643])){
                         $res  = ReadRecordService::getReadRecord($this->uid);
                         if ($res){
                             $res = array_column($res,null,'bid');