|
@@ -108,6 +108,13 @@ class ShareController extends BaseController
|
|
|
}else {
|
|
|
$cid = $book_configs->last_cid;
|
|
|
}
|
|
|
- header('location:/reader?bid='.$bid_encode.'&cid='.$cid);
|
|
|
+ $url_format = '%s://site%s.%s.com/';
|
|
|
+ $jump_link = sprintf(
|
|
|
+ $url_format,
|
|
|
+ env('PROTOCOL'),
|
|
|
+ encodeDistributionChannelId($distribution_channel_id),
|
|
|
+ env('CUSTOM_HOST')
|
|
|
+ );
|
|
|
+ header('location:'.$jump_link.'/reader?bid='.$bid_encode.'&cid='.$cid);
|
|
|
}
|
|
|
}
|