|
@@ -15,8 +15,10 @@ use App\Modules\Subscribe\Services\CrmChapterOrderDetailService;
|
|
|
use App\Modules\Subscribe\Services\CustomChapterOrderService;
|
|
|
use App\Modules\Subscribe\Services\OrderService;
|
|
|
use App\Modules\Subscribe\Models\Order;
|
|
|
+use App\Modules\User\Services\ForceGuidePersonAccountService;
|
|
|
use App\Modules\User\Services\ForceSubscribeUserIService;
|
|
|
use App\Modules\User\Services\ReadRecordStatsService;
|
|
|
+use App\Modules\User\Services\UserBindHkWelfareService;
|
|
|
use App\Modules\User\Services\UserService;
|
|
|
use App\Modules\YunQi\Services\BookUserService;
|
|
|
use Illuminate\Http\Request;
|
|
@@ -337,6 +339,7 @@ class ChapterController extends BaseController
|
|
|
$my_log->info('$uri is: '. $request->path());
|
|
|
}
|
|
|
|
|
|
+
|
|
|
$this->en_bid = $bid;
|
|
|
|
|
|
$bid = explode(',',$bid)[0];
|
|
@@ -382,6 +385,7 @@ class ChapterController extends BaseController
|
|
|
$my_log->info('chapters-info--is-----------------------');
|
|
|
$my_log->info($chapter);
|
|
|
}
|
|
|
+
|
|
|
//章节被删除
|
|
|
if (($is_delete = $this->chapterNotExists())) {
|
|
|
if($special_user_log && $special_user_log == $this->uid){
|
|
@@ -392,6 +396,25 @@ class ChapterController extends BaseController
|
|
|
'url' => $is_delete
|
|
|
]);
|
|
|
}
|
|
|
+
|
|
|
+ //强制导粉
|
|
|
+ //$force_guide_sites = redisEnv('FORCE_GUIDE_SITES');
|
|
|
+ //$img = redisEnv('GUIDE_PERSONAL_ACCOUNT_OURS_QRCODE');
|
|
|
+ list($force_guide_sites,$img) = redisEnvMulti('FORCE_GUIDE_SITES','GUIDE_PERSONAL_ACCOUNT_OURS_QRCODE');
|
|
|
+ if($force_guide_sites &&
|
|
|
+ $img &&
|
|
|
+ in_array($this->distribution_channel_id,explode(',',$force_guide_sites)) &&
|
|
|
+ $this->is_paid &&
|
|
|
+ ($this->chapter->sequence == 2 || $this->chapter->sequence == 8)&&
|
|
|
+ !UserBindHkWelfareService::isHasGet($this->uid) &&
|
|
|
+ ForceGuidePersonAccountService::isShow($this->uid)
|
|
|
+ ){
|
|
|
+ return response()->error('WAP_DOMAIN_NOT_MATCH', [
|
|
|
+ 'url' => sprintf('/force/guide?bid=%s&cid=%s&book_name',$this->en_bid,$cid,$book_info->book_name)
|
|
|
+ ]);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if($special_user_log && $special_user_log == $this->uid){
|
|
|
$my_log = myLog('special');
|
|
|
$my_log->info('chapters-----ok---------------------');
|